In this page you can define and manage Java products. The following steps are needed to be taken in order to obtain a working Java Product:
- Add you Java application's files in the Files and Folders page.
- In this page, define a Java product.
- By creating a Java product, the launcher executable will be added to the install package.
For an example, see the Java Product Installation tutorial.
Defining new products
Use the Insert key while the “Products” panel is focused. Name the Java product as you would name the executable file of your Windows application.toolbar button, the “New Product” list context menu item or press the
After creating the new product an executable with this name will be added to the installation. This is the Native Java Launcher for your Java application.
If you are creating a Mac OS X package, any settings that you set for a Java Product (JVM parameters, classpath etc.) that are based on properties or environment variables will be invalid on Mac OS X.
For JavaFX applications, please follow How do I create an installer for JavaFX applications? FAQ.
Binding two products' settings
- If the products are already created in the Products list, select “Sync with” from one product's context menu. This way it will become the synchronized child of the chosen parent product. From that point on, the parent's changed settings will be automatically inherited by the child product.
- If only one of the products is created in the Products list, select “New Synced Product” from its context menu. This will create a new identical child product which will automatically inherit its settings from that point forward. Decollapsing the parent product will reveal the newly created child.
When changing the settings of the parent product, the same child's settings will be synchronized. If any of the child's settings are modified instead, they will be excluded from the synchronization when changed again in the parent product.
Unbinding a product's settings
Any child product can be easily desynchronized by selecting “Stop Syncing” from its context menu.
Duplicating the product settings
If you are creating several products that have similar product settings, an easy way is to use Copy/Paste from the context menu. All the settings will be copied to the newly created Java product just like copying a file in Windows Explorer.
Setting the Current Feature
Advanced Installer will create components for the added resources as necessary. These components will be added to the Current Feature. Use the drop-down list box in the toolbar to change the Current Feature.
You can further manage your package's organization in the Organization page.
Use the Delete key while a product is selected.toolbar button, the “Delete” list context menu item or press the
Bundling a JRE with your Application
In the “Build” page under the “Package Definition” panel select the Java tab. Specify the path to JRE that will be bundled and optionally the path where the install package with JRE will be generated.
- Java Settings
Java Settings Tab
- Java Product Settings
About the Java Product Settings in Advanced Installer.
- Java Virtual Machine
About the Java Virtual Machine in Advanced Installer
- Mac OS X settings
The settings for creating a Mac OS X package.
- Java Product Localization
Details on how to localize a Java Product