IntelliJ IDEA 2016.1 Help

Java FX tab

File | Project Structure | Artifacts
Ctrl+Shift+Alt+S | Artifacts
projectStructure | Artifacts

Use this tab to specify the settings for packaging your JavaFX application or application preloader.

The settings depend on the artifact type (JavaFx Application or JavaFx Preloader).

JavaFx Application settings

ItemDescription
Application class Specify the (qualified) application main class name. Normally, this is the class that extends the javafx.application.Application class and contains the main() method.

Type the name of the class in the field, or click browseButton (Shift+Enter) and select the class in the Choose Application Class dialog that opens.

Title Specify the application title. In technical terms, this is the information for the <title> element in the corresponding deployment descriptor JNLP file.

If not specified, the title Sample JavaFX Application is used.

Vendor Specify the name of the application vendor (i.e. the information for the <vendor> element in the JNLP file).

If not specified, the text Unknown vendor is used.

Description Type a brief description of the application (i.e. the information for the <description> element in the JNLP file).

If not specified, the text Sample JavaFX 2.0 application is used.

Width Specify the width of the application window in pixels. This parameter is used mainly by applications embedded in a Web page.
Height Specify the height of the application window in pixels. This parameter is used mainly by applications embedded in a Web page.
HTML Parameters You may want to pass dynamic parameters to the application that runs in the Web Start or embedded in browser modes from the corresponding HTML page. In that case, you should create a .properties file and specify the necessary set of named parameters in that file. Then you should specify the path to the .properties file in this field.

You can type the path, or click browseButton (Shift+Enter) and select the file in the dialog that opens.

Application Parameters You may want to pass named and unnamed parameters to the application. In that case, you should create a .properties file and specify the necessary parameters in that file. Then you should specify the path to the .properties file in this field. (The specified parameters will be included in the generated deployment descriptor JNLP file.)

You can type the path, or click browseButton (Shift+Enter) and select the file in the dialog that opens.

Example

If the .properties file contains

arg1=value1
arg2

the following elements will be generated within <jfx:javafx-desc>:

<fx:param name="arg1" value="value1"/>
<fx:argument>arg2</fx:argument>

Update in background Use this check box to set the check attribute of the <update> element in the JNLP file. (This element is used to specify how Java Web Start should handle the application updates.)

If selected, <update check="background"/>. The JNLP client will check for updates in the background while the application is being launched.

If not selected, <update check="always"/>. The JNLP client will always check for updates before launching the application.

Native bundle Specify which native bundles you want to be generated. (A native bundle is an operating system-specific self-contained application package. Such a bundle contains an application itself as well as a JRE, JavaFX runtime and a platform-specific application launcher.)

Select:

  • none. No OS-specific bundles are created. The application is packaged into the following files:
    • <artifact_name>.jar. This file contains the compiled class files and images.
    • <artifact_name>.jnlp. This is a deployment descriptor JNLP file for Web deployment modes (Web Start and embedded in browser).
    • <artifact_name>.html. This file contains basic code for running the application in the Web Start and embedded in browser modes.
  • all. All the bundles listed below are generated.
  • deb. A Debian software package for Debian GNU/Linux is generated.
  • dmg. An Apple disk image file for OS X is generated.
  • exe. An executable file for Windows is generated.
  • image. A bundle image for the OS that you are using is generated.
  • msi. A Windows Installer (Microsoft Installer) file is generated.
  • rpm. A Red Hat Package Manager file for Linux is generated.
Convert css to bin Select this check box if you want your application CSS file to be converted into binary format. (This may improve the application performance, especially for "large" CSS files.)
Enable signing Select this check box if you want the application package to be digitally signed.

IntelliJ IDEA can generate a key and the corresponding self-signed certificate, or an existing key may be used to sign the package.

To select which way of signing should be used, click Edit Certificates. Then, in the Choose Certificate dialog that opens, select:

  • Self signed. The package will be signed with the generated self-signed certificate.
  • Signed by key. The package will be signed with your private key. Specify the associated settings:
    • Alias. Specify your private key alias.
    • Keystore. Specify the path to the keystore file. (This is where your private key and corresponding certificate are stored.)

      Type the path in the field or click browseButton (Shift+Enter) and select the keystore file in the dialog that opens.

    • Storepass. Specify the password for accessing the keystore.
    • Keypass. Specify the password for accessing the key.

JavaFx Preloader settings

ItemDescription
Preloader classSpecify the (qualified) application preloader class name.

Type the name of the class in the field, or click browseButton (Shift+Enter) and select the class in the Choose Preloader Class dialog that opens.

See Also

Last modified: 13 July 2016