HP-UX HB v13.00 Ch-11 - Software Development

HP-UX Handbook Rev 13.00 Page 66 (of 101)
Chapter 11 Software Development
October 29, 2013
$ /usr/sbin/swlist | grep -e B3911 -e B3913
B3911DB C.03.27 HP aC++ Compiler (S700)
$
At this 11.11 system we have installed version A.03.27. At the time of this writing, the latest
version for 11.11 is A.03.85. To upgrade to the latest version we need to install the A.03.85 base
release from the September 2008 application CD/DVD.
To install a certain compiler version other than the latest (might sometimes be required by some
third party software vendors), check again if it is available as patch or on CD. In case of a patch,
check which base version it requires, and then install that one first.
However, older versions of the Application CDs are generally not available from HP Distribution
and the customer must have access to an old archived version at the customer site in order to
install older versions of the compiler base release.
Installing Multiple Versions of one Java Major Release
Java application vendors might support their application only with certain java versions. Many
vendors ship the required JRE bundled with the application, and it will be installed in the
application installation tree and loaded from there as needed. Other vendors don’t, and expect the
required version to be available on the system. This could lead to the requirement of having
multiple versions of e.g. java 1.4.2 , 1.5 or 6 installed. Each major branch of java installs into a
different directory. All versions of java 1.4.x.xx install into /opt/java1.4. All versions of java
1.5.x.xx install into /opt/java1.5. All versions of java 6 install into /opt/java6. If it is necessary
to install multiple versions of 1.4, for example 1.4.2.10 and 1.4.2.15 this can be achieved as
follows:
Install one (if possible the older vendor required 1.4.2.10) version.
Rename the installation path, one suggestion would be /opt/java1.4.2.10.
Install the other newer version.
Set $JAVA_HOME appropriately before starting the application
If e.g. one application (app_1) needs version 1.4.2.10, and another one (app_2) needs 1.4.2.15,
do the following:
# swinstall s /path/to/rte14_14210_pa.depot ‘*’
# mv /opt/java1.4 /opt/java1.4.2.10
# swinstall s /path/to/rte14_14215_pa.depot ‘*’
For app_1:
$ JAVA_HOME=/opt/java1.4.2.10
For app_2:
$ JAVA_HOME=/opt/java1.4