I create a java executable .jar. It works in command prompt, but does not work by double click.
I read Windows file association, edit the registry, but still cannot get it to work.
depending on the version of jre, if its jre6, it says "main class not found". if i use jre7, no response.
I check in command prompt using "assoc .jar" and "ftype jarfile" and they confirm my registry entry:
HKEY_CURRENT_USER:software:classes:Applications:javaw.exe:shell:open:command "C:\\Program Files\Java\jre6\bin\javaw.exe" "%1" HKEY_CLASSES_ROOT:jarfile:shell:open:command "C:\\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*
I tried in command prompt
"C:\\Program Files\Java\jre6\bin\javaw.exe" -jar a.jar
works in both cases.
I can only think of "%*" thats not working??
anybody help?
This post has been edited by g37752: 08 October 2012 - 02:21 PM

New Topic/Question
Reply



MultiQuote








|