First: I realize that this issue should be quite simple and lots of people seem to have experienced it. However, it appears my issue may be slightly different from
Just found this post...
If you have the problem only when double clicking the jar file and not at cmd launch, it's probably because the version of the JRE is wrong (6 in place of 7).
Just change the value in regedit at :
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jarfile\shell\open\command]
"C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -jar "%1" %*
to :
"C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %*
There should be no problem if this value is updated.
Note : Switching between 32 and 64 bits versions on Windows :
-> "C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %*
will use the 64 bits version of the JRE
-> "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" -jar "%1" %*
will use the 32 bits version of the JRE