upgrading java


 
Thread Tools Search this Thread
Operating Systems Solaris upgrading java
# 1  
Old 03-28-2007
upgrading java

Hi there

I have been tasked with upgrading java on one of our boxes to version 6.0 or later (package version 1.5 or later someone told me). but ive been trying to find the SUNW package for this and cant see it, so I checked pkginfo for installed package and there isnt one ....even though java is installed eg

Code:
[root@server] # java -version
java version "1.3.1_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_10-b03)
Java HotSpot(TM) Client VM (build 1.3.1_10-b03, mixed mode)

but .....

Code:
[root@server] # pkginfo | grep -i jav
[root@server] #

Does anybody know how I go about upgrading this? and do i need to uninstall the old one before installing the new ??

any help would be grealty appreciated
# 2  
Old 03-28-2007
Under no circumstances should you remove a major version of java delivered with the OS. Replacing 1.3.1_10 with 1.3.1_13 would be ok, but if there is a version delivered with the OS (1.3.1), make sure you keep it, some of the core tools require specific versions.

Java is not normally released as a package, so you will not find a SUNW upgrade, even if the versions supplied with the OS are delivered that way.

usually jdks are located in /usr/java<version> so I would suggest that you put it there, creating a new directory for the version you are installing.
# 3  
Old 03-29-2007
Thanks reborg, a few questions then

1) where would i get the files i need and in what form would they take (ie will i have to compile source etc)

2) when I have installed the new version (alongside the old one but in a different directory) would I then be able to softlink the /usr/bin/java link which is currently pointing to .....(see below)

Code:
[root@server] # ls -l /usr/bin/java
lrwxrwxrwx   1 root     other         16 Jan 31  2005 /usr/bin/java -> ../java/bin/java
[root@server] #

to the location of the new binary or would i just create a new link altogether leaving the current links and binaries completely as they were ???

cheers
Gary
# 4  
Old 03-29-2007
Quote:
Originally Posted by hcclnoodles
Thanks reborg, a few questions then

1) where would i get the files i need and in what form would they take
java.sun.com

I havn't looked recently but IIRC, there is a self extracting binary and a binary tarball.

Quote:
...current links and binaries completely as they were ???
leave the links alone, let those who need to use the new version use the full path, or depending on their applications set the reference variable ( often JAVA_HOME or JRE_HOME or JDK_HOME)
# 5  
Old 03-29-2007
Quote:
Originally Posted by hcclnoodles
Thanks reborg, a few questions then

1) where would i get the files i need and in what form would they take
java.sun.com

I havn't looked recently but IIRC, there is a self extracting binary and a binary tarball.

Quote:
...current links and binaries completely as they were ???
leave the links alone, let those who need to use the new version use the full path, or depending on their applications set the reference variable ( often JAVA_HOME or JRE_HOME or JDK_HOME)
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Solaris

Upgrading java on solaris 10 x86 32 bit

I have java installed on my solaris 10 as /usr/jdk/jdk1.5.0 , but i need to install Weblogic for that i need -- JDK Sun Java 2 JDK 6.0 Update 05 with the Java HotSpot™ Client and Server VMs (32-bit) and all later service packs of 6.0 How can i upgrade my java for this. (3 Replies)
Discussion started by: jain_sharad143
3 Replies

2. Programming

Upgrading Java 1.4.1 to 1.4.2 in UNIX

Hi, I have got java 1.4.1 in my unix server, i wish to upgrade it to 1.4.2 version. I know how to do that in Windows, but it is the first time i am doing it in UNIX. Please tell me how to do it from command line? Are there any environment variable to be set in unix as in windows? Thanks in... (0 Replies)
Discussion started by: macmohanin
0 Replies
Login or Register to Ask a Question