04-22-2010 12:18 PM
I have a HP-UX 11.11 box in which I have java.1.4.2.04 installed. One of our application called Mqm uses that java. There is a critical alert to upgrade to java.18.104.22.168, however, we cannot overwrite the /opt/java.1.4 directory because it will mess up the mqm application that is currently using it.
Can Any one suggest a way to install the java.22.214.171.124 version to a different directory (for instance /opt/java126.96.36.199) instead of the default /opt/java.14.
04-22-2010 12:31 PM
1) Use another system
2) Use a different target for the install. I tried this and its a PITA. This is done in the swinstall process
Owner of ISN Corporation
04-23-2010 12:30 AM
There are two ways swinstall can do this. Alternate root: @ /alternate-root path
swlist -a is_locatable -s $PWD/foo.depot
Is is_locatable true for your depot?
04-23-2010 11:53 PM
Multiple versions in same system.
Is that recommended????
04-24-2010 12:03 PM
You could change this after installation of the newer java version.
04-25-2010 11:37 PM
This is what you can do :
1) Copy your current java to a new directory : cp -pr /opt/java1.4 /opt/java1.4.2.04
2) Change the JAVA_HOME or PATH variables in the startup scripts of your application (or all java-4 applications), and restart the application when it fits you. Verify that nothing is using the regular /opt/java1.4 directory
3) Install the newer java version with swinstall without any special options.
4) Reset the JAVA_HOME and/or PATH variables to /opt/java1.4 so that the applications pick upthe newer java version once they restart.
-> If it turns out that, against all expectations, your appicatrion can't handle java 188.8.131.52, you can allways revert to the original version by setting the JAVA_HOME and/or PATH variables to /opt/java1.4.2.04
If your application cannot handle java 184.108.40.206, and you can't change the java path for your Mqm application, there is another step you can take : Move /opt/java1.4 to /opt/java220.127.116.11 and then move /opt/java1.4.2.04 to /opt/java1.4.
But you now need to change the JAVA_HOME and PATH variables for all your other java applications, or you could as well install nothing at all.