i install JDK in
C:\Program Files\Java\jdk1.6.0_24
and set the variables as follow:
JAVA_HOME: C:\Program Files\Java\jdk1.6.0_24
CLASSPATH: .;C:\Program Files\Java\jdk1.6.0_24\lib;C:\Program Files\Java\jdk1.6.0_24\lib\tools.jar;
PATH: C:\Program Files\Java\jdk1.6.0_24\bin
but when i run the java -version command , the error
could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'
comes up. then i move the jre folder out the jdk folder to
C:\Program Files\Java\
and change the folder name to jre6 (then it has the C:\Program Files\Java\jre6 folder) , everything becomes good then .
why this is happening ? it seems to me that it is not the environment variables that are controlling the JVM's location.