posted 16 years ago
Specify the absolute path of the java.exe or javaw.exe that you want to use. So instead of
you type
Note how I added double quotes around the path - it is needed if there is a space somewhere in the path. Given that most people install the JRE and JDK in C:\Program Files, it's probably needed.
The java.exe and javaw.exe in C:\WINDOWS\system32 are nothing more than wrapper files. They check a part of the registry for the location of the JRE, then execute the java.exe / javaw.exe in that location. When you install a new JRE it changes the registry to say the new JRE should be used, but the old one can still be executed.