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

If you want your Java home directory in <alternate_directory> without the
/opt/java6 directories, you need to install into a temporary directory, and then move
the directories to where you want them.
For example:
JDK:
swinstall -s <download> Jdk60.JDK60-* Jre60.JRE60-* @/<temporary_directory>
mv <temporary_directory>/opt/java6/* <final_alternate_directory>
JRE:
swinstall -s <download> Jre60.JRE60-* @/<temporary_directory>
mv <temporary_directory>/opt/java6/* <final_alternate_directory>
Or you can install and link to the directories.
For example:
JDK:
swinstall -s <download> Jdk60.JDK60-* Jre60.JRE60-* @/<actual_directory>
ln -s /<actual_directory>/opt/java6/* <final_alternate_directory>
JRE:
swinstall -s <download> Jre60.JRE60-* @/<actual_directory>
ln -s /<actual_directory>/opt/java6/* <final_alternate_directory>
File structure JDK/JRE
The following diagram displays an abbreviated form of the file structure:
java6
|
___|________________________________________________
| | | | |
bin lib jre demo include
| | |
java tools.jar |
javac dt.jar |
javadoc ir.idl |
javah jconsole.jar |
javap orb.idl |
javaws |
jdb |
jhat |
jrunscript |
rmid |
tnameserv |
wsgen |
: |
__|_____________________________
| |
bin lib
| |
java |
Installation 13