Solaris ASR - Update JAVA version

Hi, all

I wish to implement ASR for a SUN server in my production.
currently the version of JAVA for this SUN server is

root@procyon # java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)

but to implement the ASR, the minimum requirement for JAVA version is
Java version JDK 1.5.0_14

I had download the latest JAVA from internet, jdk-6u17-solaris-sparc.sh.
May i know how to update the java without effect the production?

Kindly advise.

Download the self-extracting binary and check the file size to ensure that you have downloaded the full, uncorrupted software bundle.

You can download to any directory you choose; it does not have to be the directory where you want to install Java.

Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.

Make sure that execute permissions are set on the self-extracting binary:

On SPARC processors: chmod +x jre-6u<update>-solaris-sparcv9.sh
On x64/EM64T processors: chmod +x jre-6u<update>-solaris-amd64.sh

Change directory to the same directory from where you ran the self-extracting binary for the 32-bit install.

This is the directory that contains the jre-6u<update> directory of the 32-bit Java. The next step installs Java into the current directory.

Run the self-extracting binary.
Execute the downloaded file, prepending the path to it. For example, if the downloaded file is in the current directory, prepend it with './ '

On SPARC processors: ./jre-6u<update>-solaris-sparcv9.sh
On AMD64/EM64T processors: ./jre-6u<update>-solaris-amd64.sh

The binary code license is displayed, and you are prompted to agree to its terms. Files for support of 64-bit operation are installed at several locations within the same jre-6u<update> directory where the 32-bit Java was installed

erm.. after i download the jdk-6u18-solaris-sparcv9.sh from internet, and install in a testing server.

i found that however finish the install, when i run java -version, it still show me the older version.

root@lyra # java -version
java version "1.2.2"
Solaris VM (build Solaris_JDK_1.2.2_17b, native threads, sunwjit)

please help =)

---------- Post updated 01-15-10 at 10:48 AM ---------- Previous update was 01-14-10 at 02:26 PM ----------

i think i found a solution already.. =)
i need to change the symbolic links after install a new java version.

root@lyra # rm /usr/bin/java
root@lyra # ln -s /usr/jdk1.6.0_17/bin/java /usr/bin/java
root@lyra # ls -ld /usr/bin/java
lrwxrwxrwx   1 root     other         25 Jan 15 10:45 /usr/bin/java -> /usr/jdk1.6.0_17/bin/java
root@lyra # cd /
root@lyra # java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)

is it other also need to change the symbolic links ?

lrwxrwxrwx   1 root     other         15 Jun  4  2005 jar -> ../java/bin/jar
lrwxrwxrwx   1 root     other         21 Jun  4  2005 jarsigner -> ../java/bin/jarsigner
lrwxrwxrwx   1 root     other         17 Jun  4  2005 javac -> ../java/bin/javac
lrwxrwxrwx   1 root     other         19 Jun  4  2005 javadoc -> ../java/bin/javadoc
lrwxrwxrwx   1 root     other         17 Jun  4  2005 javah -> ../java/bin/javah
lrwxrwxrwx   1 root     other         18 Jun  4  2005 javald -> ../java/bin/javald
lrwxrwxrwx   1 root     other         17 Jun  4  2005 javap -> ../java/bin/javap
lrwxrwxrwx   1 root     other         15 Jun  4  2005 jdb -> ../java/bin/jdb

kindly advise.=)

A cleaner way for you could have approached is to uninstall the previous version and install the new version