Configure JDKs Dialog


  The JDK configuration dialog is displayed when you click the Configure JDKs button on the Java version tab or in the Java editor settings dialog.
  In this dialog, you can add one or more JDKs that will be available for the purposes outlined on the Java version help page. The JDK configurations are not saved in the project, they are saved globally for your install4j installation.

When you add a new JDK, you are asked for the home directory of the JDK that you want to enter. Instead of a JDK, you can also select a JRE, in which case no parameter names will be available in the code completion proposals of JDK methods. After you select the home directory, install4j will check whether the directory contains a JDK or JRE and runs java -version to determine the version of the selected JDK or JRE.

The table that shows the configured JDKs has several columns:

  • Name
    This is a symbolic name that describes the JDK, like "JDK 9.0" When you select a design time JDK on the Java version tab or in the Java editor settings dialog, only this symbolic name will be saved in the project file. When users on other computers and other platforms configure a JDK with the same symbolic name in their install4j installation, it will be used automatically for code compilation and code completion.

    When you add a JDK, the name "JDK [major version].[minor version]" will be suggested by default. If the selection is a JRE, "JRE [major version].[minor version]" will be suggested instead. The name of the JDK configuration must be unique.

  • Java Home Directory
    This is the Java home directory that you selected when you added the configuration. You can change the Java home directory by editing this column. The Java version check will be performed again and the version displayed in the "Java Version" column will be updated. The symbolic name of the configuration will not be changed.
  • Javadoc Directory
    In this column, you can enter the location of the Javadoc that should be associated with this JDK configuration. The Javadoc directory can remain empty in which case no context-sensitive Javadoc help will be available for classes from the runtime library.
  • Java Version
    This uneditable column shows the version of the selected JDK configuration.

When you delete the JDK configuration that is currently used by the project, the project will still reference the same configured symbolic name for the JDK. It will then be shown in red color with a [not configured] message attached.

Changing the order of JDK configuration changes the order in the drop-down list on the Java version tab or in the Java editor settings dialog.