I'm working in a Windows XP environment and have recently installed java 1.6 because it was required by an application.
However I don't want this to be the default version of java to be used. How do I set it so that the command java -version will return 1.5.x
Best Answer
Change your PATH variable so that it has the location of the jdk5/bin directory:
java -version