How can I convert a .jar to an .exe?
问题 I want to convert a .jar to an .exe for microsoft. Is there any program converter for this? Also if there\'s one for Mac and Linux I would appreciate suggestions for those too. 回答1: Launch4j works on both Windows and Linux/Mac. But if you're running Linux/Mac, there is a way to embed your jar into a shell script that performs the autolaunch for you, so you have only one runnable file: exestub.sh: #!/bin/sh MYSELF=`which "$0" 2>/dev/null` [ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" JAVA_OPT=""