Hosted by:
SourceForge

wrapper.registry.java_home Property
wrapper.registry.java_home Property
Configuration Property Overview
wrapper.registry.java_home

The Wrapper can be configured to launch a JVM that has been configured in the Windows registry. This is done by setting the wrapper.java.command property to an empty value.

By default, the Wrapper will look for a a registry entry set by the Sun JRE installer. This property makes it possible to tell the Wrapper to look in a specific location for a registry key containing a JAVA_HOME value.

The specified registry key is the full path to a key of type REG_SZ.

Example - Default Registry Location:
wrapper.java.command=
Example - Custom Registry Location:
wrapper.java.command=
wrapper.registry.java_home=HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyApplication\JavaHome

The registry entry should contain a fully qualified, absolute path to a java installation. It should be the home directory of the installation. The Wrapper will append \bin\java to the specified directory.

Example - REG_SZ Value:
C:\Program Files\MyApp\jre

If the java command is located using the Windows registry, the JAVA_HOME value will be stored into a WRAPPER_JAVA_HOME environment variable. This value can then be referenced in the values of other properties.

by Leif Mortenson

last modified: