Problems with j2sdk1.4.2_02 !!!
I'm testing my application on a old virtual machine (because in Java 1.5 run very well) and when I:
- install the j2sdk1.4.2_02,
- set the JAVA_HOME=C:\j2sdk1.4.2_02
- set the path= .... %JAVA_HOME%\bin
I put java on my command line and, nothing happen ... I try java -version but show me the other java version that has installed.... what i do wrong?
There is place that I don't know where is setted the virtual machine to use in the System ....
I'm using Windows XP.
Thank's
You need to change the environment under system properties by click the System icon in Control Panel.
Click Advance tab and follow by clicking Environment Variables.
Next, under the User Variable for xxxx, you need to creat a new variable as folllows:
Variable Value
--
JAVA_HOME c:\ j2sdk1.4.2_02
Next add the following to the Path:
PATH c:\ j2sdk1.4.2_02;..........
Click OK to update. When you next activate Command DOS prompt, it should be there.
Please give it a try.
I did it and not work, my problem is that I have two JVM in my computer ... j2sdk1.4.2_09 and j2sdk1.4.2_02, my enviroment variables are setted for the j2sdk1.4.2_02 JVM but when I ask for the java version say that is j2sdk1.4.2_09 ... no matter how many times I close/open the command window, it is the same.
Thank's for your answer ....
I will suggest to use a file manager, like Total Commander, to change the directory name of j2sdk1.4.2_02 to j2sdk1.4.2_02x and j2sdk1.4.2_09 to j2sdk1.4.2_02.Change back if you want to use j2sdk1.4.2_02.