wrapper.java.version.* Properties Overview |
The Java Service Wrapper has the ability to print the Java version specified with the wrapper.java.command, and to prevent the application from starting if the version of Java is not within a configured range.
NOTAWhen jdb or javaw are used as the Java command, their output can't be used to parse information such as the Java version or vendor. Since version 3.5.45, the Wrapper tries to find the 'java' command in the same directory (or simply 'java' if the command has to be resolved using the system PATH), and uses it to query information. Failing that, you can still use the wrapper.java.version.fallback property to specify the version manually. |
wrapper.java.version.output |
||||||||
It can sometimes lead to unexpected or surprising behaviors when running a Java application with a different Java version than intended for the program. Therefore it might be helpful to see the exact version of the JVM, which is being used before the application is being started.
The Wrapper will print out the exact version of the JVM if the
wrapper.
As of version 3.5.55, the default value is based on the value of wrapper.java.query.loglevel: Prior to version 3.5.55, the default value was "FALSE". The Wrapper will also automatically output the JVM version, if it runs in debug mode.
NOTAFrom version 3.5.35, the log output uses a different source 'JVM ver.' (instead of 'JVM 1', 'JVM 2', etc.) when showing the version of Java. This is done to avoid confusion with the output of the Java application. |
wrapper.java.version.fallback |
||||||||
This property is used in case the Wrapper fails to parse the output of 'java -version'. If it is not set, the Java version will be resolved to the lowest supported version, but the Wrapper will stop when the following properties are used:
When wrapper.java.version.fallback is used however, all the above properties can be used even if the 'java -version' output would fail to be parsed.
|
wrapper.java.version.min |
||||||||||
Specifies the minimum version of Java for which the Wrapper is allowed to launch the Java Application. The default value is '1.4' which is the oldest JVM version supported by the Wrapper. Any lower value is invalid and will cause the Wrapper to stop. The value can be in the format '1.major[.minor[_revision]]' or 'major[.minor[.revision]]', regardless the version of Java. This is done to support both numbering schemes returned by 'java -version': prior to Java 9 the first format was used, while Java 9 and above use the second format. The brackets indicate that the minor and revision components are optional. Leaving one or both unspecified means that these placeholders will accept any number.
ADVERTENCIA
|
wrapper.java.version.max |
||||||||||
Specifies the maximum version of Java for which the Wrapper is allowed to launch the Java Application. The default value is 'UNLIMITED' which allows the Wrapper to start the Java application with the latest versions of Java. Usually this is expected to work thanks to backward compatibility ensured through the versions of Java. However, the practice is sometimes different, and it is advised to use a version of the Wrapper released after (or close to) the release date of Java, as the compatibility can be tested and confirmed. The value can be in the format '1.major[.minor[_revision]]' or 'major[.minor[.revision]]', regardless the version of Java. This is done to support both numbering schemes returned by 'java -version': prior to Java 9 the first format was used, while Java 9 and above use the second format. The brackets indicate that the minor and revision components are optional. Leaving one or both unspecified means that these placeholders will accept any number.
ADVERTENCIA
|
Referencia: Comandos de Java |
|