Operating System - HP-UX
1826230 Members
4906 Online
109692 Solutions
New Discussion

Java 1.4.2.09 installation with keeping exisisting java 1.4.2.06

 
josutilities
Occasional Contributor

Java 1.4.2.09 installation with keeping exisisting java 1.4.2.06

Hi All,

1)Can I install Java 1.4.2.09 on a alternate path eg: /java/opt/java1.4/ without uninstalling the exisisting java 1.4.2.06.

Server Configurations:

OS B.11.11.
Currently installed SDK java versions
java 1.2 /opt/java1.2
java 1.3 /opt/java1.3
java 1.4.2.06 /opt/java1.4
5 REPLIES 5
Ashly A K
Honored Contributor

Re: Java 1.4.2.09 installation with keeping exisisting java 1.4.2.06

hi!!
i think it is possible. I never did it on HPUX, but did it on Linux and Windows.
-Ashly
http://www.geocities.com/helponhpopenview
rariasn
Honored Contributor

Re: Java 1.4.2.09 installation with keeping exisisting java 1.4.2.06

Hi,


Paste output for "bdf|grep -i java" command.

rgs.
Peter Godron
Honored Contributor

Re: Java 1.4.2.09 installation with keeping exisisting java 1.4.2.06

Hi,
yes you can install your version of java, provided it into a seperate location.

Easiest way is to install 1.4.2.09 into /opt/java1.4.2.09 and then repoint your java link /opt/java to /opt/java1.4.2.09.

That way, if you have to 'fall back' to java1.4.2.06 you can just change the link /opt/java.

Please also review you PATH variable.
Steven E. Protter
Exalted Contributor

Re: Java 1.4.2.09 installation with keeping exisisting java 1.4.2.06

Shalom,

Yes,

Accessing both versions is possible by modfiying the PATH or JAVA_PATH variable.

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
Alzhy
Honored Contributor

Re: Java 1.4.2.09 installation with keeping exisisting java 1.4.2.06

HP's Java versions *always* install in /opt/java1.N (where N is the version). And often times, we've requirements to have multiple versions.

So we came up with a standard of having versions in their own /opt trees, ie:

/opt/java1.4 -- would be the as installed version
/opt/java1.4.2_07 - rev 07
/opt/java1.4.2_11 - rev 11 (DST2007)

How do I have the HP JAVA depot install on those non-standard paths? Easy, I create them on a sandbox and create cpio archives for deployment:

On my sandbox:

1. mv /opt/java1.N /opt/java1.N_old
2. swinstall java 1.4.2_11 (this will install in /opt/java1.4)
3. rename /opt/java1.4 to /opt/java/1.4.2_11
4. Create CPIO archive
cd /opt
find ./java_1.4.2_11 -depth -print|cpio -o|gzip >/largefs/java1.4.2_11.cpio.gz

TO install the CPIO on my destination server. Simply FTP/COPY the cpio GZ archve and unpack:

cd /opt
gzcat /somewhere/java1.4.2_11.cpio.gz |cpio -idvmu

Now my client will be very happy as it does not disturb the default /opt/java1.4 installation. To use this version of java, they simply point their PATHS and other Java environmentals to this tree.


Hakuna Matata.