Operating System - HP-UX
1834485 Members
3146 Online
110067 Solutions
New Discussion

Installing Java to a different directory.

 
SOLVED
Go to solution
John E. Goetz
Frequent Advisor

Installing Java to a different directory.

Want to install Java version 1.4.2.11 on our Unix server but do not want to overwrite existing Java version in /opt/java1.4 directory. I am trying to run the following command: swinstall -s /tmp/patch_depot/sdk14_14211_pa.depot \* @/tmp/java1.4.2
but it errors with ERROR: Could not apply the software selection "Jdk14" because a
different variant of a dependency for this product has already been selected.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Installing Java to a different directory.

Shalom,

Me and someone else messed around with this a few years back and had no success. You should be able to do this but it doesn't seem to work.

The best way to go is to have one 1.4.x java product installed and use the JAVA_PATH variable to direct users that need other major versions of Java to where they need to go.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
DCE
Honored Contributor
Solution

Re: Installing Java to a different directory.



I've not had much luck with it.

got around it by working off hours

moved /opt/java1.4 to /opt/java1.4orig

installed new java 1.4

moved /opt/java1.4 to /opt/java1.4.2

moved /opt/java1.4orig to /opt/java1.4
Geoff Wild
Honored Contributor

Re: Installing Java to a different directory.

Like DCE says - when no one is using the Java, mv the current 1.4 dir out of the way...

If that can't work for you, then backup your current 1.4, install the new one, then change the dir toe 1.4.2 and restore your 1.4 dir.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dennis Handly
Acclaimed Contributor

Re: Installing Java to a different directory.

Hmm, we had something similar where we changed the path of the product. But we weren't installing to an alternate root.

I suppose you could add -x enforce_dependencies=false to see if that makes it work? Then manually install those dependencies there?