Using the Choose Java VM Panel

InstallAnywhere 2020 SP1

If you want end users to be able to choose which JVM is used at run time, you can include the Choose Java VM panel in your installer.

Adding a Choose Java VM panel:

1. In the Advanced Designer, on the Sequence page, click Pre-Install. The Pre-Install view opens.
2. Click the Add Action button. The Choose an Action dialog box opens.
3. Click the Choose Java VM action, and then click the Add button. InstallAnywhere adds the action to the Pre-Install Action List. The Choose an Action dialog box remains open, enabling you to add additional actions as needed.
4. Use the arrow keys to move the action up or down in the action list.

There will be an error message when you select a Java VM that is not on the valid VM list which will indicate ‘The selected application is not a valid Java Virtual Machine for this installation.’ when choosing a Java VM from the Choose Java VM panel.

To specify an action’s settings, select the action and use its customizers at the bottom of the view. For detailed information on the Choose Java VM action’s customizer settings, see Choose Java VM Panel Action.

By default, the Choose Java VM panel action enables end users to search for JVM locations other than the ones that are defined in the project. In addition, the default behavior enables end users to choose a specific Java executable file. To override this default behavior, configure the action’s customizer settings as needed.

For Windows-based and UNIX-based installers, you can customize the search paths and search patterns that the JVM search uses. For details, see Customizing the VM Search Paths and Patterns.

See Also