Java upgrade on Solaris

itubaf used Ask the Experts™
Dear Experts,

i have one server running sun solaris V10
uname -a

SunOS (hostname) 5.10 Generic_147441-09 i86pc i386 i86pc

installed version is 5, but for my application requirment i want to upgrade to 6.
java -version
java version "1.5.0_32"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_32-b05)
Java HotSpot(TM) Server VM (build 1.5.0_32-b05, mixed mode)

could anyone please help step by step on upgrade.....

thanks in advance.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
This procedure is for Solaris Sparc, yours is Solaris x86? The steps are similar:

# which java

# cd /usr/bin
# ls -al

lrwxrwxrwx   1 root     other          7 Sep 30  2004 java -> java5
drwxr-xr-x   7 root     bin          512 Sep 24  2004 java5

Note new Java version script has loaded under the /usr directory (shown in bold) . To install the new version it is just necessary to run the script and update the relevant symlinks, i.e.

      Install new Java and update the Java symlinks:-

# cd /usr/bin
# ./

# rm /usr/java
# ln -s /usr/bin/java /usr/java6

$ which java
$ java -version


not working for me...

i have downloaded jre-7u4-solaris-i586.tar.gz...
try to gunzip and file become jre-7u4-solaris-i586.tar..


You need to un-tar it with:
# tar xvf jre-7u4-solaris-i586.tar

then run the .sh file.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial