Hosted by:
SourceForge

wrapper.java.command Property
wrapper.java.command Property
Configuration Property Overview
wrapper.java.command

The command to use when launching a JVM. If the full path to the java executable is not specified, then the Wrapper will attempt to locate a java executable on the system path. It is advised that the value does not contain an extension. Specifying a value like java.exe would mean that the same configuration file could not be used on Linux or UNIX systems.

Example using system path:
wrapper.java.command=java
Example using JAVA_HOME environment variable:
wrapper.java.command=%JAVA_HOME%/bin/java
Example using full path (not platform independent):
wrapper.java.command=c:/j2sdk1.4.0/bin/java

On Windows systems, it is also possible to use the JRE configuration from the system registry. This is done by setting an empty value.

By default, the wrapper will look for a Sun JRE using the default registry key. It is possible to configure a specific java_home location using the wrapper.registry.java_home property.

Example using system registry (not platform independent):
wrapper.java.command=

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: