I have been trying to get this to work, but it won't. I went through the Archive Manager and found the MANIFEST.MF
file in App.jar/META-INF/
so I don't know why it says there isn't one!
chmod
-ing it with chmod +x./App.jar
and running ./App.jar
returns
bash: ./App.jar: cannot execute binary file: Exec format error
Running Linux Mint 20 (Based on Ubuntu 20.04) With OpenJDK 11.
Use java -jar App.jar
to run the executable JAR file.
There is a way to make JAR files directly executable using the binfmt_misc
kernel feature but most users/linux distributions don't bother to set it up.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.