Create LaunchAnywhere for Java Application Action

InstallAnywhere 2023 R2

You can use the Create LaunchAnywhere for Java Application action to create a launcher to start the installed Java application.

Properties Tab

The Properties tab of the Create LaunchAnywhere for Java Application customizer has two subtabs:

General Settings Tab
Advanced Settings Tab

General Settings Tab

The General Settings tab includes the following options:

Create LaunchAnywhere for Java Application | Properties > General Settings Tab

Option

Description

Path

Identifies the location of the LaunchAnywhere executable to be created on the target system. You can use either the magic folder list or the Visual Tree’s arrow buttons to change the path.

Name

Sets the name for the launcher.

Main Class

Specifies the main class in your Java application. This is the class that the launcher invokes. To choose from a list of the available classes in the project, click the Automatically Find Main Classes button next to this setting.

Arguments

Specifies the list of arguments to pass to the Java application’s main method. The default value is $CMD_LINE_ARGUMENTS$.

Launcher Type

Defining the launcher type allows you to specify whether the Java application is a GUI-based application that calls javaw.exe (stdout and stderr suppressed by default), or a console application that calls java.exe (stdout and stderr directed to the console by default). In addition, on Windows-based systems, console launchers redirect stdout and stderr output to the same console window from which they were invoked.

If your application has a graphical interface, select Graphical Launcher. Otherwise, select Console Launcher.

Icon

To select a different icon for the LAX executable file on OS or OS X–based and Windows-based target systems, click the Change button next to the icon image. To revert the launcher icon to the InstallAnywhere default image, click the Default button.

Custom icons are not available for UNIX-based installers.

OS or OS X icons can be 128 X 128.

On Windows-based target systems, the LaunchAnywhere executable file does not display the specified icon directly. Instead, the LaunchAnywhere executable file has the generic .exe icon, and an .ico file is placed in the same folder as the executable file; all shortcuts that are created during installation and that target the LaunchAnywhere inherit the custom icon.

InstallAnywhere does not support interlaced GIF files for the icon.

Launcher Properties

To configure various settings for the launcher, click the Edit Properties button.

Windows Execution Level

Select the execution level that your application requires for Windows-based systems. Available options are:

As Invoker—The launcher is run with the same execution level as its parent process. This execution level is typically standard user privileges, since Windows Explorer runs as a standard user. If the launcher does not require administrative privileges and all users can run it without administrative privileges, select this option.
Highest Available—The launcher is run with the highest Windows privileges and user rights that are available to the current user. Administrators must authorize it; non-administrators run it without administrative privileges.
Administrator—The launcher requires local administrative privileges to run. Depending on the privileges of the current user account and the configuration of the target system, this setting may result in a launcher that will not start.

Override Default UNIX/ OS X Permission

To set the file permissions to a specific value for this launcher, select this check box. When you select this option, the Permissions text box is enabled. In the text box, enter the numeric permissions value (such as the octal number mode, 755).

Advanced Settings Tab

The Advanced Settings tab controls the VM selection for this launcher and includes the following options:

Create LaunchAnywhere for Java Application | Properties > Advanced Settings Tab

Option

Description

Configure LaunchAnywhere with

Select one of the following options:

VM Selected by the Installer or by the End User via Choose VM Panel
VM Used by the Installer
The First VM Found in the System Matching the VM Search Settings Defined Under Project >Java
No Specific VM (Allow LaunchAnywhere to Search for a VM Based on its lax.nl.valid.vm.list Property)

Note:See Java Virtual Machines for a details about VM selection. See Creating Launchers for Java Applications for instructions on using this action.

Rules, Tags, and Rollback Tabs

For information on the other tabs on this customizer, see the following:

Rules—Use this tab to add rules to the selected action. For more information, see Assigning a Rule to an Action and Rules Reference.
Tags—Use this tab to add build configuration tags to the selected action. For more information, see Assigning Tags to Project Elements.
Rollback—Use this tab to specify rollback behavior for the selected action. For more information, see Configuring Installation Rollback Behavior.