Changing JVM on Windows path.
Hello.
I have recently installed the sdk to Java 1.6, but would like to revert instead back to my erlier (and still installed version 1.5). This is not on the path, and I have tried to look through the registry to find something enlightening.
Please tell me how I change the java path in Windows.
Thank you,
Owen.
Thanks to both of you for your comments.
I observe that while I can reach java 1.6 from the command line, the text "C:\Program Files\Java\jdk1.6.0_01" (the release of 1.6 that I have) is not on my path. I.e., I type path at the command line, and do not see the directory entry. Is there some place in the registry that this information is being maintained?
If there is, I believe I'll want to change it to use "C:\Program Files\Java\jdk1.5.0_10" (the release of 1.5 that I have), so that 1.5 is used instead of 1.6.
Is there a registry entry such as I am thinking there is?
Owen.
Alas, they were. But how did version 1.6 appear there? They must have been copied in there by the install for 1.6? In any case, I removed the following (to the trash so I can restore if needed):
java.exe
javacpl.cpl
javaw.exe
javaws.exe
Is it okay to delete these files? Should I replace them with alternatives from 1.5?
Owen.
It works for me both on Windows and Un*x Instead of fiddling with PATH, to use wrapper scripts which invoke java, javac, javap with the full path names.
It's the JRE installer that puts those files in the System32 folder, not the JDK. The best way to revert to the 1.5 JRE is to uninstall the the 1.6 JRE and reinstall the the 1.5 JRE. Simply althering the PATH variable won't stop the browser from using the "current" JRE to run applets or web-start apps. The JRE and JDK are listed separately in the "Add or remove programs" control panel widget.