This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I think it does have to do with registry settings, but I'm rusty with the issues. Do you really need both versions on your computer? If no one else gives you better advice, I'd recommend uninstalling both. Then installing 1.4 first, and 1.3 second (only if needed). --Mark
Check your PATH (not CLASSPATH) environment variable with echo %PATH%. See if the 1.3.0 compiler bin directory is before the c:\j2sdk1.4.1_02\bin directory. If it is, then remove it. It's a good idea to have a JAVA_HOME variable set to C:\j2sdk1.4.1_02 and use it in both your PATH and CLASSPATH.
Thanks for the replies. I needed j2sdk1.4.1 for testing purpose and since my version of Netbeans IDE doesn't run without jdk1.3 I had to retain the older version too. My Classpath and Path env.variables do not contain any reference to the old JDK. Anyway, I do agree it's not logical to have both the versions on my machine. I was just curious to know why such result should come (see my first post in this thread). And how the versions were being judged..I am still sure this must be the registry thing.
Joined: Aug 03, 2002
You could search for all the java.exe files and see whether their directories are on the PATH. If you put the %JAVA_HOME%\bin (JAVA_HOME = c:\j2sdk1.4.1_02) in the front of your PATH that should at least enable the correct executables to be used. -Cheers Barry [ March 31, 2003: Message edited by: Barry Gaunt ]