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.

[345 byte] By [Owen_Thomasa] at [2007-11-27 4:56:46]
# 1
Right click on the computer on the desktop. Go to properties. Go to Advanced tab. Edit Environment Variables
bschauwejavaa at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...
# 2
The 1.5 bin directory is probably under "C:\Program Files\Java\jdk1.5.0_06" or similar if you installed in the default location.
hunter9000a at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...
# 3

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.

Owen_Thomasa at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...
# 4
check for C:\Windows\system32\java.exe (and javaw.exe)
S_i_m_ua at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...
# 5

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.

Owen_Thomasa at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...
# 6
> Is it okay to delete these files? Should I replace> them with alternatives from 1.5?> >Owen.I don't know, but I suppose installing 1.5 will generate this files...[]
S_i_m_ua at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...
# 7
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.
BIJ001a at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...
# 8

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.

uncle_alicea at 2007-7-12 10:12:01 > top of Java-index,Java Essentials,Java Programming...