When installing the agent, you must utilize an installer which does not include a JRE bundled with the deployer/agent, for example:
Little known secret, install4j has a parameter, that, when used in conjunction with installers that lack a bundled JRE, will point the agent to an arbitrary JRE of your choice, typically JRE7 or newer.
The solution is as easy as knowing where the JRE is installed that you intend to use, then defining the environment variable:
Depending on the operating system, or more specifically the shell being used, this can vary. For example, with bash you may simply execute:
export INSTALL4J_JAVA_HOME_OVERRIDE=/path/to/desired/jre -- followed by executing the installer ( ./nolio_agent_6_2_0_b3010.sh )
setenv INSTALL4J_JAVA_HOME_OVERRIDE=/path/to/desire/jre -- then execute the installer ( ./nolio_agent_6_2_0_b3010.sh )
You should then end up with a working agent installation with the preferred java version.