Operating System - HP-UX
1828581 Members
2465 Online
109982 Solutions
New Discussion

Re: Different Java versions

 
Ahmed_41
Super Advisor

Different Java versions

Dear All,

i have NNM 7.01 on an HPUX machine, from NNM i try to open Cisco works on another machine, Cisco works needs Java version different than NNM, is there any workaround to install both java versions in order to keep NNM featuers based on java working, and be able to start cisco works using its java
NNM uses 1.4.1_05 and cisco uses 1.4.1_02
4 REPLIES 4
Alex Lavrov.
Honored Contributor

Re: Different Java versions

Yes, you can instaqll both versions. During the installation, change the target directory of the product, so it will not overwrite another version and you'll have to versions installed in different palces.

Then, in each product declare different JAVA_HOME environment variable so it will point different java versions.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Ahmed_41
Super Advisor

Re: Different Java versions

Alex,
this looks to be a very good solution, but the details are not clear enough.
first, i install the java version using swinstall, so i am not sure how to install in a different directory, second, i will open Netscape and mozilla, so how to tell Netscape that its java is a certain version, and tell Mozilla that its java is another one ?

thanks
Ganesha Sridhara
Honored Contributor

Re: Different Java versions

Install 2 version of java. But donâ t set the javac and java in the PATH.
Before starting the java applications set the appropriate version of java and javac in the PATH and start the application. This we are doing in our system where 2 applications requires different version of java

HTH

Regards,
Ganesha Sridhar
renarios
Trusted Contributor

Re: Different Java versions

Hi Ahmed,

The new java installation will be installed in another directory.
Set the JAVA_HOME and PATH variable for your netscape/firefox in your .profile.

For the application using another JAVA_HOME, set the JAVA and PATH variable in the application startup scripts.

Cheerio,

Renarios
Nothing is more successfull as failure