In the as4/as5 plugins, there is a 'javaHome' plugin config prop which specifies the path to the JRE/JDK that should be used when starting or restarting the server instance. The value of this prop is used to set the JAVA_HOME environment variable in the script's process.
Without this, the same JVM used by the Agent will likely end up being used, which may not be what the user wants.
JAVA_HOME is present in both Domain and Standalone resrouces and when it is not empty is taken to account when starting up server
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE