wrong version of java

Hello,I have two different versions of jre on my computer. When I go to the cmd and write java -version it gives me the version I don't want to use. What are the change I need to make so that it gives me the version I want to use?Thank you
[261 byte] By [john3010a] at [2007-11-27 6:11:01]
# 1
> Hello,> > I have two different versions of jre on my computer. HelloWhy?Just delete older version.
Davey_Vargasa at 2007-7-12 17:16:58 > top of Java-index,Java Essentials,New To Java...
# 2
Hibecause this computer is not mine and I don't have access to it.
john3010a at 2007-7-12 17:16:58 > top of Java-index,Java Essentials,New To Java...
# 3
And the problem is that it s going directly to the new version which is not the one i want.
john3010a at 2007-7-12 17:16:58 > top of Java-index,Java Essentials,New To Java...
# 4
Manipulate the path variable so that the path to the version that you want comes first in the path.PATH=C:\java-version-i-want\bin;%PATH%
kevjavaa at 2007-7-12 17:16:58 > top of Java-index,Java Essentials,New To Java...
# 5
I have tried that and it didn't work.
john3010a at 2007-7-12 17:16:58 > top of Java-index,Java Essentials,New To Java...
# 6
> I have tried that and it didn't work.I guess your computer's broken ;). I just tried it on WinXP, and it worked for me. Good luck, hope it all works out.
kevjavaa at 2007-7-12 17:16:58 > top of Java-index,Java Essentials,New To Java...
# 7
thanks anyway
john3010a at 2007-7-12 17:16:58 > top of Java-index,Java Essentials,New To Java...
# 8
You could always open a command window and type in the whole path the version you want:"\Program Files\Java\jdk1.6.0\bin\java" YourClass
Hippolytea at 2007-7-12 17:16:59 > top of Java-index,Java Essentials,New To Java...
# 9
> Hi> > because this computer is not mine and I don't have> access to it.first you say you "my computer" and now it's "not mine and I don't have access to it".Which will it be?
jwentinga at 2007-7-12 17:16:59 > top of Java-index,Java Essentials,New To Java...
# 10
http://www.computerhope.com/issues/ch000549.htmReplace the path to the old Java with the path to the new Java.> I have tried that and it didn't work.Obivously you didnt try hard enough. Or you are using something other than windows.
jellystonesa at 2007-7-12 17:16:59 > top of Java-index,Java Essentials,New To Java...