VM parameters
If there are any VM parameters you would like to specify for the
invocation of your Java application, you can enter them here (e.g.
-Dmyapp.myproperty=true or -Xmx256m).
Note: You must quote parameters that contain spaces. Please quote the
entire parameter like "-Dapp.home=%INSTALL4J_EXEDIR%" and not just
the value. Incorrect quoting will lead to failure of the launcher.
There are several variables you can use to specify runtime directories:
-
%INSTALL4J_EXEDIR%
This is the directory where the executable is located.
-
%INSTALL4J_JVM_HOME%
This is the directory of the JRE that your executable is running with.
-
%INSTALL4J_PATHLIST_SEPARATOR%
This is the character used to separate path lists (";" on Windows, ":" on Unix
and Mac OS X)
These variables can be especially useful for adding JAR files to the bootclasspath.
Note for Microsoft Windows and Unix launchers: In addition to these VM parameters,
a parameter file
in the same directory as the executable is read and its contents are added to
the existing VM parameters. The name of this parameter file is the same as the
executable file with the extension .vmoptions.
For example, if your executable is named hello.exe, the name of the VM
parameter file is hello.vmoptions. In this file, each line is
interpreted as a single VM parameter. The last line must be followed by a line feed.
install4j adapts your .vmoptions files during the compilation phase so that the line endings
are suitable for all platforms. For example, the contents of the VM parameter
file could be:
-Xmx128m
-Xms32m
You can use environment variables in the VM parameters with the following syntax:
${VARIABLE_NAME} where you replace VARIABLE_NAME with the desired
environment variable.