Originally posted by Anas Nashroel:
Hi, I installed jdk 1.4 and 1.5 on windows. I set JAVA_HOME to refer to jdk 1.5 installation folder. When I type java -version, it refers to jdk 1.5 installation.
and then, I downloaded and installed jdk 1.6. When the installation was finished, I type java -version in command prompt, and it refers to jdk 1.6 version. But strangetly, I looked at path environment variables, and I couldn't find path that leads to jdk 1.6 installation folder. The path is to jdk 1.5 installation folder.
So, how can i set the java version to use in windows ??
Thanks in advance
Originally posted by Christophe Verre:
Isn't it PATH ?
Joanne
Originally posted by Anas Nashroel:
I looked at path environment variables, and I couldn't find path that leads to jdk 1.6 installation folder. The path is to jdk 1.5 installation folder.
So, how can i set the java version to use in windows ??
Thanks in advance
Joanne
Originally posted by Joanne Neal:
The PATH variable tells the operating system where to look for executable files.
The CLASSPATH variable tells the Java compiler and JRE where to look for class files.
They are totally unrelated - putting the path to the JDK bin directory in the CLASSPATH will not tell the OS where to find the javac program.
Originally posted by Campbell Ritchie:
The CLASSPATH is where the JVM looks for other executable .class files, so you don't want to confuse CLASSPATH and PATH.
Last thing you want in your PATH is your CLASSPATH.
Originally posted by Paul Campbell:
Point taken...
Harish
SCJP ,SCDJWS
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Harish
SCJP ,SCDJWS
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|