You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
Jar files are really zip archives, which will tolerate a comment line at the head of the file.
$ head -n 1 ~/bin/JarFile
!/home/y/bin/java -jar
chmod +x ~/bin/JarFile
To execute this trick at home, prefix a command as above (your java location may vary) to the jar file by concatenation, then use chmod to set the executable bit in the file mode, and you're good to go.
The text was updated successfully, but these errors were encountered:
Jar files are really zip archives, which will tolerate a comment line at the head of the file.
$ head -n 1 ~/bin/JarFile
!/home/y/bin/java -jar
chmod +x ~/bin/JarFile
To execute this trick at home, prefix a command as above (your java location may vary) to the jar file by concatenation, then use chmod to set the executable bit in the file mode, and you're good to go.
The text was updated successfully, but these errors were encountered: