A
antonyliu2002
The Windows XP work station I use in my lab does not have J2SE
installed. It only has the JRE of version. 1.4.2_08 installed. Look:
C:\Documents and Settings\antonyliu>java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
C:\Documents and Settings\antonyliu>
I don't wanna go through the hassle to ask the administrator of my
windows work station to install the newest J2SE package. So, I
installed JDK1.5 under my home directory C:\Documents and
Settings\antonyliu\jdk1.5
I've set the PATH, CLASSPATH and JAVA_HOME to point to this jdk1.5
folder. Look:
PATH=%PATH%;C:\Documents and Settings\antonyliu\jdk1.5\bin
CLASSPATH=%CLASSPATH%;C:\Documents and Settings\antonyliu\jdk1.5\lib
JAVA_HOME=C:\Documents and Settings\antonyliu\jdk1.5
But whenever I run java -version, it still shows me the old one. So,
is it possible to specify a JRE different from the system default?
Thanks.
installed. It only has the JRE of version. 1.4.2_08 installed. Look:
C:\Documents and Settings\antonyliu>java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
C:\Documents and Settings\antonyliu>
I don't wanna go through the hassle to ask the administrator of my
windows work station to install the newest J2SE package. So, I
installed JDK1.5 under my home directory C:\Documents and
Settings\antonyliu\jdk1.5
I've set the PATH, CLASSPATH and JAVA_HOME to point to this jdk1.5
folder. Look:
PATH=%PATH%;C:\Documents and Settings\antonyliu\jdk1.5\bin
CLASSPATH=%CLASSPATH%;C:\Documents and Settings\antonyliu\jdk1.5\lib
JAVA_HOME=C:\Documents and Settings\antonyliu\jdk1.5
But whenever I run java -version, it still shows me the old one. So,
is it possible to specify a JRE different from the system default?
Thanks.