On windows, I installed both j2sdk1.4 and jdk1.5 (1.4 for working, 1.5 for personal)
environmental variables are: PATH as 1.4/bin, JAVA_HOME is where 1.4 is.
so after these, I thought 1.4 is the version of
java i am using now, but when i try 'java -version' on command line, 1.5 shows up.
If I disable PATH, 'javac' (compile) won't work, means i am still using 1.4 to compile. however, 'java' works fine.
I guess there's something i should setup as well as PATH and JAVA_HOME. maybe CLASSPATH? I wonder.
Thanks in advance.