Hotspot is using the environment variable JAVA_HOME to attempt to
locate shared libraries.
Unfortunately, there is no guarantee that JAVA_HOME is set to any
particular acceptable value, and the rest of the JDK does not depend
on it.
Test case - set JAVA_HOME to a 1.2 JDK, and run java_g from a 1.3 JDK.
# setenv JAVA_HOME /usr/java1.2
# /usr/j2se/bin/java_g -version
There was an error trying to initialize the HPI library.
Please check your installation, HotSpot does not work correctly
when installed in the JDK 1.2 Solaris Production Release, or
with any JDK 1.1.x release.
Could not create the Java virtual machine.
This only applies to _g versions of commands.
locate shared libraries.
Unfortunately, there is no guarantee that JAVA_HOME is set to any
particular acceptable value, and the rest of the JDK does not depend
on it.
Test case - set JAVA_HOME to a 1.2 JDK, and run java_g from a 1.3 JDK.
# setenv JAVA_HOME /usr/java1.2
# /usr/j2se/bin/java_g -version
There was an error trying to initialize the HPI library.
Please check your installation, HotSpot does not work correctly
when installed in the JDK 1.2 Solaris Production Release, or
with any JDK 1.1.x release.
Could not create the Java virtual machine.
This only applies to _g versions of commands.