This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
As far as I know, the computer searches through the PATH environment variable from left to right until it finds an executable matching the requisite name, in this case "java". So try putting the version you want first in the PATH. Test it with java -version at a terminal/command prompt.
Tran Tuan Hung
Joined: Apr 08, 2007
can you explain more clearly? in fact, my computer had 3 jre versions(jre1.5.0_07, 1.5.0_09, 1.6.0_03) been installed. now the jre1.6.0_03 is using, how can i change to jre1.5.0_07???
On Windows XP, the jre install puts a java.exe file in the Windows/System32 folder which is often at the head of the PATH. I've swapped between jre versions by copying the java.exe file from the bin for the version I want to use to the Windows\System32 folder. Somehow the java.exe uses the Registry to find the rest of the stuff it needs. I also did the above on Windows 98, but with a different folder.