Solaris ASR - Update JAVA version


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris ASR - Update JAVA version
# 1  
Old 01-13-2010
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
Code:
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.
# 2  
Old 01-13-2010
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
# 3  
Old 01-14-2010
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.
Code:
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.

Code:
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 ?
Code:
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.=)
# 4  
Old 01-15-2010
A cleaner way for you could have approached is to uninstall the previous version and install the new version
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Upgrade java version on solaris 10 SPARC

Hi Friends, I am trying to upgrade my java version on solaris sparc machine. I have installed the o/s software from scratch and it came with some default java version. I want to install the newer version of java available on top of this machine. I have already installed the latest version in... (7 Replies)
Discussion started by: prash358
7 Replies

2. Solaris

Update java version in Zone

I am using a solaris zone in Sun blade-T6320 which has a java version "1.5.0_18" i want to update it to 1.6.0.16 or higher , how can i do that , does i need to add the new java package to the global server or just instal it in the zone itself. do i need to remove the older version or and install... (1 Reply)
Discussion started by: Sojourner
1 Replies

3. Solaris

java (java -version)

hi my box is a global zone with no local zones and the command java -version shows as "1.5.0_26". now we got a requirement from the application team to install jdk1.5.0_24. Is it possible to install the version of java(jdk1.5.0_24) as requested by the application team or is it possible to... (2 Replies)
Discussion started by: newtoaixos
2 Replies

4. UNIX for Advanced & Expert Users

Advanced Search * View * Edit JAVA version to WORK in GLASSFISH Forum topic JAVA version

Would like to confirm the ff. I got confused actually with the version I needed to download that will work on glassfish 3.0.1 a. Debian Squeeze (HP DL360). Need to use java version6 On Debian, I did apt-get install sun-java6-jdk. So when I check it's java version "1.6.0_22" Java(TM) SE... (1 Reply)
Discussion started by: lhareigh890
1 Replies

5. Solaris

Solaris 10 Java version

I have an issue here setting up ASR with a server. In order to have the SASM service runnning/enabled, the required java version is 1.6 U18(latest). My OS came with JDK 1.5 I downloaded and installed 1.6 But when I did java -version , its still showing 1.5 I captured the below from another... (4 Replies)
Discussion started by: incredible
4 Replies

6. Solaris

After update Solaris version, HBA driver still need to install?

Hi all I had update a server from Solaris 8 to Solaris 10 is it the HBA driver still need to reinstall? since i can get the driver info as below: root@sgerpdev # fcinfo hba-port HBA Port WWN: 21000003ba9b58a3 OS Device Name: /dev/cfg/c1 Manufacturer: QLogic Corp. ... (1 Reply)
Discussion started by: SmartAntz
1 Replies

7. Solaris

what is the command to see the java version in solaris 8 and solaris 10

what is the command to see the java version in solaris 8 and solaris 10 (1 Reply)
Discussion started by: tv.praveenkumar
1 Replies
Login or Register to Ask a Question