Configure JVM

 

Configuring the JVM

The JVM Configuration offers the possibility to specify the parameters passed to the Java Virtual Machine when launching your application.

Configuration of the JVM
The JVM configuration panel

Options

The Options panel provides editable fields to configure the memory configuration of the JVM. Specify the numeric value in the text field, and the unit in the combo box.

Java Properties

Java properties are name/value pairs that are passed to the JVM, and are accessible by java applications using the System.getProperty() method.

To add a new Java Property, click on the . A dialog box pops up.

Specify the name and the value for this property, and click on the Done button.

Special Values

You can use the Java Property mechanism to pass special values to your java app.

  • Environment Variable: If you pass a string of the form %ENV% in the value field of the property, the wrappers will replace the string with the content of the ENV environment variable.
  • For instance, to pass the content of the JAVA_HOME environment variable, adds %JAVA_HOME% in the Value field.
  • JExecutable also makes some special variable accessible for your application.

Form

Meaning

${EXECUTABLEPATH}

Replaced by the path to the executable binary. For instance, if the executable binary launched is located at c:/program files/JExecutable/test.exe, this variable is replaced with c:/program files/JExecutable

${EXECUTABLENAME}

Replaced by the name of the executable binary. For instance, if the executable binary launched is located at c:/program files/JExecutable/test.exe, this variable is replaced with test.exe

${COMPUTERNAME}

Replaced by the name of the computer.

${VMSELECTION}

Replaced by the name of the selection method used to spawn the JVM. The value replaced is typically one of the following values:

    • registry, when the VM location is found in the registry
    • jdkpath, when the VM if found in the %JDK_HOME% variable
    • jrepath, when the VM if found in the %JRE_HOME% variable
    • javahome, when the VM if found in the %JAVA_HOME% variable
    • jview, if the VM is JView
    • exepath, if the VM was found in the windows path
    • bundled, if the VM bundled with the application is used

${VMSPAWNTYPE}

This variable is replaced by one of the following values:

    • JVMDLL if the JVM is spawned using a DLL loading and instanciation
    • PROC if the JVM is spawned in a new process using the Windows' CreateProcess function

 

[Home] [Features] [Create Java Exe] [Skeleton Selection] [Windows Exe] [Define Parameters] [Select JVM] [Configure JVM] [Command Line] [Ant Task] [JNI Functions] [JExecutable FAQ] [License]

jexecutable@gurusoft.net