How do I mark a jar file executable in Ubuntu?

Mỹ Duyên

New member
How do I mark a jar file executable in Ubuntu?
Answer
You can always run a jar file by doing java -jar myFile. jar . However, to make the jar file itself executable, you need to set the executable bit, as the message hints. chmod +x /path/to/your/file/myFile.
 

Tìm kiếm

Back
Top