A
Author
If this has been asked many times, please don't get grouchy. I did
search and tried, but still failed.
Maybe I am having bad luck today, or maybe my system is too messy with
all kinds of JREs. I get stuck. I googled around, set all kinds of
paths and classpaths, it just does not help.
OK, I installed java_ee_sdk-5_06-windows.exe on my XP pro box. I set
up JAVA_HOME and added the jdk\bin folder to the PATH variable.
javac -version shows me 1.6.0_10
but, java -version still shows me 1.4.2_04.
It looks like this workstation has Sybase and Oracle which are using
the older JREs. I don't wanna remove all of these. But how can I
successfully set up the default JRE to 1.6. I've read the instruction
at java.sun.com and have made a few attempts, but failed.
Pasted below is the path setup info, which help you guys help me. Any
hint is appreciated.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Users\username>javac -version
javac 1.6.0_10
C:\Users\username>java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Users\username>path
PATH=C:\Sun\SDK\JDK;
C:\oracle\ora92\bin;
C:\oracle\ora92\jre\1.4.2\bin\client;
C:\oracle\ora92\jre\1.4.2\bin;
C:\Program Files\Oracle\jre\1.3.1\bin;
C:\Program Files\Oracle\jre\1.1.8\bin;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\system32\WBEM;
C:\Program Files\Common Files\Roxio Shared\DLLShared\;
C:\Sybase\DLL;C:\Sybase\BIN;
C:\Program Files\Sybase\Sybase Central\win32;
C:\Sybase\ASEP;
C:\Program Files\QuickTime\QTSystem\;
C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;
C:\Program Files\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE
\;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
\PrivateAssemblies\
C:\Users\username>echo %java_home%
C:\Sun\SDK\jdk
search and tried, but still failed.
Maybe I am having bad luck today, or maybe my system is too messy with
all kinds of JREs. I get stuck. I googled around, set all kinds of
paths and classpaths, it just does not help.
OK, I installed java_ee_sdk-5_06-windows.exe on my XP pro box. I set
up JAVA_HOME and added the jdk\bin folder to the PATH variable.
javac -version shows me 1.6.0_10
but, java -version still shows me 1.4.2_04.
It looks like this workstation has Sybase and Oracle which are using
the older JREs. I don't wanna remove all of these. But how can I
successfully set up the default JRE to 1.6. I've read the instruction
at java.sun.com and have made a few attempts, but failed.
Pasted below is the path setup info, which help you guys help me. Any
hint is appreciated.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Users\username>javac -version
javac 1.6.0_10
C:\Users\username>java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Users\username>path
PATH=C:\Sun\SDK\JDK;
C:\oracle\ora92\bin;
C:\oracle\ora92\jre\1.4.2\bin\client;
C:\oracle\ora92\jre\1.4.2\bin;
C:\Program Files\Oracle\jre\1.3.1\bin;
C:\Program Files\Oracle\jre\1.1.8\bin;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\system32\WBEM;
C:\Program Files\Common Files\Roxio Shared\DLLShared\;
C:\Sybase\DLL;C:\Sybase\BIN;
C:\Program Files\Sybase\Sybase Central\win32;
C:\Sybase\ASEP;
C:\Program Files\QuickTime\QTSystem\;
C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;
C:\Program Files\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE
\;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
\PrivateAssemblies\
C:\Users\username>echo %java_home%
C:\Sun\SDK\jdk