For Linux, there's a way: Package the jar in a bash file. Steps:
1- Create a stub:
MYSELF=`which "$0" 2>/dev/null` [ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" exec java -jar $MYSELF "$@" exit $?
2- Concatenate the stub and the jar into a new executable:
cat stub.sh Main.jar > main.sh
3- Make the new file executable:
chmod +x main.sh
That's it! Source: https://coderwall.com/p/ssuaxa/how-to-make-a-jar-file-linux-executable