HP-UX 11i Java™ JDK/JRE Version 7.0.09 Release Notes

If you use the GUI version of swinstall, by default the top level bundle Java70 will
appear. Then:
To install the complete JDK (including the JRE), mark this bundle and do the install.
To install only the JRE, select Actions-> Open Item. Then from the list, mark Jre70,
and then select Actions-> Install.
Installing into an alternate location
To install the software into an alternate location:
Designate filesets either:
JDK installation: Java70.Jdk70.JDK70-* and Java70.Jre70.JRE70-*
JRE installation: Java70.Jre70.JRE70-*
Add "@/<alternate_directory>" to the end of the swinstall command.
Add the alternate directory to your PATH.
For example: (note that the swinstall command is located at /usr/sbin/swinstall)
JDK:
swinstall -s <depot_dir>/<depot_filename> Java70.Jdk70.JDK70-* Java70.Jre70.JRE70-*
@/<alternate_directory>
JRE:
swinstall -s <depot_dir>/<depot_filename> Java70.Jre70.JRE70-* @/<alternate_directory>
SD-UX prepends <alternate_directory> to the default product path. Java will
therefore install in /<alternate_directory>/opt/java7.
If you want your Java home directory in <alternate_directory> without the
/opt/java7 directories, you need to install into a temporary directory, and then move
the directories to where you want them.
For example:
JDK:
swinstall -s <depot_dir>/<depot_filename> Java70.Jdk70.JDK70-* Java70.Jre70.JRE70-*
@/<temporary_directory>
mv <temporary_directory>/opt/java7/* <final_alternate_directory>
JRE:
swinstall -s <depot_dir>/<depot_filename> Java70.Jre70.JRE70-* @/<temporary_directory>
mv <temporary_directory>/opt/java7/* <final_alternate_directory>
Or you can install and link to the directories.
For example:
JDK:
swinstall -s <depot_dir>/<depot_filename> Java70.Jdk70.JDK70-* Java70.Jre70.JRE70-*
@/<actual_directory>
ln -s /<actual_directory>/opt/java7/* <final_alternate_directory>
JRE:
14