I have two different java versions installed on my system,
However, when I try to open up the cmd and type in java -version , I get java 1.5.0.
How can I switch to java 1.4.2? I tried to change the Path environment variable to my java 1.4.2 folder, but when I open up the command prompt after that it still gives a java 1.4.2 version?
Is there any registry entry I need to change to get the correct java version in my command prompt? Also, I DON'T want to be using a direct path to the java 1.4.2 code i.e. I DON't want to be doing this,
I want to set some variables, so that I can use,
and it would recognize the appropriate version depending on what I've set? This is because I have some .bat files that have many java commands in it, and I need to use the proper version with it.
Thanks for any help. I will increase the points if someone gives me an answer quickly.