Order of Java versions
In an earlier thread, a poster included this instruction:
"Make sure that the Java 6 SDK is mentioned before other versions in the PATH environment variable."
Well, on my WinXP system, I find:
java -version
returns 1.6.0_01
but the suggested
javac -J-version
returns 1.4.2
Now periodically I get notices that there are updates to my Java and I
have dutifully installed them. Now I find:
C:\Program Files\Java
jdk1.5.0_02
jre1.5.0_02
jre1.5.0_05
jre1.5.0_06
jre1.5.0_10
jre1.5.0_11
jre1.6.0_01
So, help an ol' mainframer out here.
* what can I uninstall?
* what can I delete?
* what do I need to download and install?
* how do I "Make sure that the Java 6 SDK is mentioned before other versions in the PATH environment variable."?
It looks like I don't even have Java 6 SDK, just JRE.
> "Make sure that the Java 6 SDK is mentioned before
> other versions in the PATH environment variable."
>
> Well, on my WinXP system, I find:
>
> java -version
>
> returns 1.6.0_01
>
> but the suggested
>
> javac -J-version
>
> returns 1.4.2
>
which indicates that you're referring to a 1.6 JRE but a 1.4 JDK/compiler.
> C:\Program Files\Java
>jdk1.5.0_02
> jre1.5.0_02
>jre1.5.0_05
> jre1.5.0_06
>jre1.5.0_10
> jre1.5.0_11
>jre1.6.0_01
> o, help an ol' mainframer out here.
>
> * what can I uninstall?
Everything and start from scratch, nothing, or anything you like basically.
But you must have a 1.4.2 as well somewhere :)
> * what do I need to download and install?
If you want to code to 1.6, the 1.6/6.0 JDK.
> * how do I "Make sure that the Java 6 SDK is
> mentioned before other versions in the PATH
> environment variable."?
>
in your environment settings, put the entry right at the front.
> It looks like I don't even have Java 6 SDK, just JRE.
Indeed, that's something you will need to fix.
Download JDK6u1 from the sun website. This will install the JDK 1.6 as well as JRE. I assume that u'll install it in C:\Program Files(this is default). Go to My Computer, left click->properties->advanced->environment variables. Here in User variables u will find the PATH variable.
Edit this and put C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Java\jre1.6.0_01\bin; in the beginning of the variable.
Make the same changes in the system variables tab. This makes sure of "Make sure that the Java 6 SDK is mentioned before other versions in the PATH environment variable".
I'm using jdk1.6.0_01. If u are using some other version make the changes as necessary.