T
TsanChung
My solaris 10 sparc computer has java 1.5 and 1.6 installed.
How to change the existing java from 1.5 to 1.6?
# java -version
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
# which java
/usr/bin/java
# ls -l /usr/bin/java
lrwxrwxrwx 1 root root 16 Aug 22 15:31 /usr/bin/java -
# ls -l /usr/jdk
total 12
drwxr-xr-x 4 root bin 512 Aug 22 11:24 instances
lrwxrwxrwx 1 root other 7 Mar 28 2005 j2sdk1.4.2_06 -
instances/jdk1.5.0
lrwxrwxrwx 1 root root 21 Aug 22 11:28 jdk1.6.0_7 ->
instances/jdk1.6.0_07
lrwxrwxrwx 1 root root 10 Aug 22 11:32 latest ->
jdk1.6.0_7
drwxr-xr-x 7 root bin 512 Mar 28 2005 packages
# ls -l /usr/jdk/instances/
total 4
drwxr-xr-x 9 root bin 512 Aug 22 11:38 jdk1.5.0
drwxr-xr-x 10 tcma other 512 Aug 22 09:20 jdk1.6.0_07
How to change the existing java from 1.5 to 1.6?
# java -version
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
# which java
/usr/bin/java
# ls -l /usr/bin/java
lrwxrwxrwx 1 root root 16 Aug 22 15:31 /usr/bin/java -
../java/bin/java
# ls -l /usr/jdk
total 12
drwxr-xr-x 4 root bin 512 Aug 22 11:24 instances
lrwxrwxrwx 1 root other 7 Mar 28 2005 j2sdk1.4.2_06 -
lrwxrwxrwx 1 root other 18 Mar 28 2005 jdk1.5.0_01 ->../j2se
instances/jdk1.5.0
lrwxrwxrwx 1 root root 21 Aug 22 11:28 jdk1.6.0_7 ->
instances/jdk1.6.0_07
lrwxrwxrwx 1 root root 10 Aug 22 11:32 latest ->
jdk1.6.0_7
drwxr-xr-x 7 root bin 512 Mar 28 2005 packages
# ls -l /usr/jdk/instances/
total 4
drwxr-xr-x 9 root bin 512 Aug 22 11:38 jdk1.5.0
drwxr-xr-x 10 tcma other 512 Aug 22 09:20 jdk1.6.0_07