Operating System - HP-UX
1833776 Members
2299 Online
110063 Solutions
New Discussion

Installing 2 versions of JDK

 
Bobby George
Occasional Contributor

Installing 2 versions of JDK

How can I install two versions of JDK ie. jdk1.1.8 and jdk 1.2.2.on the same system?
4 REPLIES 4
Volker Borowski
Honored Contributor

Re: Installing 2 versions of JDK

This should not really be a problem.
I have this on a Solaris box in /usr/local.

drwxr-xr-x root other 512 Nov 7 2000 Solaris_JRE_1.2.1_04
drwxr-xr-x root other 512 Nov 17 2000 Solaris_JDK_1.2.2_05a

The main Problem is not to play wron with the huge environment of the applications, i.e. CLASSPATH, JAVACLASSPATH, WEBLOGICCLASSPATH or whatever. I would recommend to use seperate OS-Users for the applications runing in seperate environment.

BTW, do you need IBM 1.1.8 for SAP Busines Connector ?

Volker
George_14
Occasional Advisor

Re: Installing 2 versions of JDK

How do you do it on HP-UX?
marc seguin
Regular Advisor

Re: Installing 2 versions of JDK

When installing the Java 1.1.8 depot with swinstall, it is located in /opt/java.
And installation of Java 1.2.X is in /opt/java1.2.
So it is not a problem to find both versions installed on the same machine.
You just have to be careful with your environment (CLASSPATH,...)
John Waller
Esteemed Contributor

Re: Installing 2 versions of JDK

Similar to marc , but what I did was after installing version 1.2 I performed a move command on the directory name , e.g move /opt/java /opt/java.1.2 before I installed an updated version of java1.3. Again you need to make sure the user setup their PATHS and enviroments correctly to look at the correct version of JDK