How can I convert a .jar to an .exe?

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=”” PROG_OPT=”” # Parse … Read more

Corrupt jar file

This will happen when you doubleclick a JAR file in Windows explorer, but the JAR is by itself actually not an executable JAR. A real executable JAR should have at least a class with a main() method and have it referenced in MANIFEST.MF. In Eclispe, you need to export the project as Runnable JAR file instead of as JAR file to get a real … Read more