There is difference in terminology between "open" and "execute". "Open" opens the file for editing. "Execute" runs the program and all its side effects.I typed "java -jar" and behind -jar I put the full file name. It said that it was unable to acces the .jar file.
Not sure which you are trying.
To view content of .jar file, type
jar tf filename.jar
To execute the .jar, type
java -jar filename.jar
providing the java version is right for the .jar file and there is a Main-class manifest header in the filename.jar, and the filepath is reachable, then it should execute.
RUN.bat:Do you have or know any other methods I can use to try to open an empty RUN.bat file?
what is the reported size of the file? If it is 0 KB then that could be a problem for Windows.
If the file is greater than 0 KB, then you could try typing out the contents of the file with
TYPE RUN.bat
Or you could try adding a new command to the existing file by piping it:
ECHO PAUSE >> RUN.bat
that might make the file big enough to open normally.
My Computers
System One System Two
-
- OS
- Windows 11
- Computer type
- PC/Desktop
- CPU
- AMD Ryzen 5 5600
- Motherboard
- MSI B550-A Pro
- Memory
- 16 GB
- Graphics Card(s)
- Sapphire Radeon RX 6500XT (8 GB version)
- Monitor(s) Displays
- BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
- Hard Drives
- MSI Spatium M461 4TB
-
- Operating System
- Windows 11
- Computer type
- Laptop
- Manufacturer/Model
- Acer A114
- CPU
- Intel Celeron N4020