Specify arguments for Java. Depending on the JVM being used, arguments are specified differently. Arguments can be specified in a JVM neutral way using the following syntax:
%IF_EXISTS%("<setting name>", "@<setting name>@").
The %IF_EXISTS% is a keyword that tells the launcher to perform conditional text replacement. The first argument to this function is the name of a JVM setting. If the specified setting exists for that JVM, the second argument is resolved and placed in the launch command for the uninstaller as an argument to Java. Note that both of the arguments passed to this function need to be enclosed in double quotes. If it does not exist, it will resolve to an empty string. You can include multiple %IF_EXISTS% function calls in this property - just make sure to place a space between them.
Example:Results:%IF_EXISTS%("INIT_JAVA_HEAP", "@INIT_JAVA_HEAP@20m") %IF_EXISTS%("MAX_JAVA_HEAP", "@MAX_JAVA_HEAP@40m")
-Xms20m -Xmx40m
.
-ms20m -mx40m
.
INIT_JAVA_HEAP
and MAX_JAVA_HEAP
properties have been changed to HPUX_118_INIT_JAVA_HEAP
and HPUX_118_MAX_JAVA_HEAP
, respectively. The original property names resulted in "out of memory" errors because the "garbage collector" was not running properly.
To see the settings that are available, look at the various files within the "jvms" subdirectory.
This property should not be used for arguments to Java that are already handled by other properties within this bean such as classpath since that will result in the same command line option being specified multiple times to Java, and may cause an error depending on the option.