Java on HP-UX 11i Frequently Asked Questions
Product questions
Q: How do I tell what version of Java I'm running?
A: Assuming the directory where Java is installed is in your PATH variable, run
java -version
Alternatively you can use the full path name. If you have installed Java in the default
location, the paths are as follows:
Java 1.4: /opt/java1.5
Java 5.0: /opt/java1.5
Java 6.0: /opt/java6
The java -version command also gives you the specific release information, such
as the build date and all the minor version information.
HP has unified release numbering for PA-RISC- and Itanium®-based systems releases.
All HP-UX 11i Java 1.4.2, 5.0, and 6.0 releases are supported on the following hardware
platforms and HP-UX 11i operating environments:
• HP 9000 PA-RISC:
— 11i v1 (11.11)
— 11i v2 (11.23)
— 11i v3 (11.31)
• HP Integrity Itanium®:
— 11i v2 (11.23)
— 11i v3 (11.31)
HP's product versioning scheme is similar to Oracle's versioning scheme. An HP
maintenance release, for example 5.0.12, would contain Oracle's 5.0 maintenance fixes
and may include additional HP defect fixes. A subsequent HP maintenance release,
for example 5.0.14, would contain all additional defect fixes for HP releases after 5.0.
HP's maintenance releases are not directly comparable to Oracle's update releases. For
example, HP's 5.0.15 is not directly comparable to Oracle's 1.5.0_15.
Note that on occasion HP backports defect and security bulletin fixes from a later Oracle
release. See the corresponding Release Notes for all fixes in a release.
Q: Can I run multiple versions of Java at the same time?
A: Yes, because each version installs by default into a different directory. Java 1.4 installs
in opt/java1.4, Java 5.0 in /opt/java1.5, and Java 6.0 in /opt/java6.
However, you need to add the correct directory for the version you are using to your
PATH variable.
For JNI applications, you also need to define the environment variable SHLIB_PATH
to reference the correct directory structure for the Java shared libraries.
Product questions 5