I have a .jar file that I would like to open via double clicking it and not the command line. When I double click it however it opens with Javaw.exe, I would like it to open with Java.exe when I double click it.
Note: I do not want to change the default program it opens with (Java TM Platform SE binary) because I still want my other .jar files to open with Javaw.exe.
Thanks
I would have suggested changing the file associations, but you say you don't want other .jar
files to open with java.exe
. So your best option might be to create a batch file and double click that instead.
e.g. my_jar.bat
with contents:
"C:\Program Files\Java\jre7\bin\Java.exe" my_jar.jar