I have a JAR file named helloworld.jar. In order to run it, I\'m executing the following command in a command-line window:
In regedit, open HKEY_CLASSES_ROOT\Applications\java.exe\shell\open\command
HKEY_CLASSES_ROOT\Applications\java.exe\shell\open\command
Double click on default on the left and add -jar between the java.exe path and the "%1" argument.
java.exe
%1