http://jira.hyperic.com/browse/HHQ-2178
Wrapper fails to start JVM process if the JAVA_HOME is set but points to an invalid directory. The order of preference for resolving the JAVA_HOME was changed in 4.0.0 due to the utilization of the wrapper framework. The 4.0 order of preference is 1) HQ_JAVA_HOME 2) JAVA_HOME 3) embedded jre.
If JAVA_HOME is set, the Java Service Wrapper will honor it in preference to the embedded jre, even if invalid. In 3.x versions of the Agent, the embedded jre took preference over the JAVA_HOME variable. It is not possible to maintain the former order of preference in 4.0, since the Java Service Wrapper has no way to detect whether the jre directory exists based on pure configuration.
Anonymous