Index

wrapper.java.command

Compatibilidad :1.0.0
Ediciones :Edición ProfesionaEdición EstándarEdición de la Comunidad
Plataformas :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

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.

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

Not contain an extension:

It is advised that the value does not contain an extension. Specifying a value like java.exe together with an extension would mean that the same configuration file could not be used on Linux/UNIX systems.

Windows:

On Windows systems, it is also possible to use the JRE configuration from the system registry. In that case, this property is required to be set to an empty value.

By default, the Wrapper will look for the Sun JRE specified in 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 path to the command will be stored into a WRAPPER_JAVA_HOME environment variable. This value can then be referenced in the values of other properties.

NOTA

While the wrapper.java.detect_debug_jvm property is set to TRUE, if the wrapper.java.command property is set to "jdb" or "jdb.exe", then the Wrapper will assume that the JVM is using a debugger and ignore certain timeouts.

wrapper.java.command.resolve

Compatibilidad :3.5.4
Ediciones :Edición ProfesionaEdición EstándarEdición de la Comunidad
Plataformas :Windows (No Soportado)Mac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

This property specifies whether the Wrapper should try to resolve the Java command specified in the wrapper.java.command property or continue using the unresolved path as possibly defined.

Resolving the Java command by the Wrapper is generally a good option, as it will help you to point out and start troubleshooting easily missettings on the environment leading to unexpected behaviour when starting your application with the Wrapper. However, on some UNIX distributions a JVM can be started not only with the "java" command but also by small helper applications, e.g. run-java-tool on Gentoo Linux. However this application might only allow to get called via a symbolic link to them.

The default value of this property is "TRUE". If you want to deactivate the resolving, please switch this property to FALSE.

Example:
wrapper.java.command.resolve=true

Referencia: Comandos de Java