File jarwrapper of Package jpackage-utils
#!/bin/bash # /usr/local/java/bin/jarwrapper - the wrapper for binfmt_misc/jar if [ $# -lt 1 ] then echo "Use this program to execute a Java jar file, usage:" echo -e "\t$0 <jar file>.jar" echo echo Press key to exit ... read exit 1; fi echo "executing:" echo -e "java -jar $1" echo echo if ! java -jar $1 then echo "The execution of $1 failed. The reason is probably that $1 doesn't contain the MainClass in MANIFEST.MF. " echo "If you want to unpack $1, call: " echo " jar -xf $1 " fi