A while ago, i accidentally set to run .jar files in WinRAR by default, and when reverting back to java, I used the wrong java application, I did this several times instead of googling the correct application, which is javaw.exe. Now, when I attempt to set this as the default program, all I get is an error telling me that java can't find the main class of whatever I am trying to run. I have tried endless times to get this working, google has been used, but I simply cannot find anything. I have completely uninstalled and reinstalled java and minecraft countless times. I simply cannot do anything which requires me to run a .jar file.
I'm not attempting to run Minecraft from the .jar. I wasn't sure where this belonged so I just put it in this subforum. Minecraft itself works fine. My problem is when I try to run something like MCSkinEdit, or Technic Launcher. Normally I would use the Technic Launcher exe but I'm one of the few people that get the error "cannot find java directory," so I have to run it from the .jar, which I can't do because my java is screwed up.
I am on Windows 7, with Java Version 7 Update 5.
Please help me, I have grown desperate.
http://www.minecraft.net/download
You need admin rights and some regedit experience.
HKEY_CLASSES_ROOT\jarfile\shell\open\command
(Default) REG_SZ "C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %*
Or use notepad to make a .reg file with the following key export
[HKEY_CLASSES_ROOT\jarfile\shell\open\command]
@="\"C:\\Program Files\\Java\\jre7\\bin\\javaw.exe\" -jar \"%1\" %*"