I just created a jar file using jdk7. I tried running it but kept getting an error. It turned out it was pointing at a jre6 and not the jre in jdk7. So, I used the following
OK, I found the answer somewhere else but ran into this issue again so came here via google.
The solution is...
jre6" or follow this:HKLM->SOFTWARE->Classes->jarfile->shell->open->command[-jar "%1" %*] parts on the end of it.Hopefully this'll save some people a bit of time.
This happened to me when I installed the JRE6 plugin for Chrome, though it could happen when installing any other JRE I guess.