javajarexecutable-jar

Running JAR file on Windows


I have a JAR file named helloworld.jar. In order to run it, I'm executing the following command in a command-line window:

java -jar helloworld.jar

This works fine, but how do I execute it with double-click instead? Do I need to install any software?


Solution

  • Easiest route is probably upgrading or re-installing the Java Runtime Environment (JRE).

    Or this:

    Which was stolen from here: http://windowstipoftheday.blogspot.com/2005/10/setting-jar-file-association.html