I have a JAR file named helloworld.jar. In order to run it, I\'m executing the following command in a command-line window:
Another way to run jar files with a click/double-click, is to prepend "-jar " to the
file's name. For example, you would rename the file MyJar.jar
to -jar MyJar.jar
.
You must have the .class
files associated with java.exe
, of course. This might not work in all cases, but it has worked most times for me.