filmov
tv
JavaFX Tutorial 60 - MSI Installer for JavaFX 8 Application
Показать описание
In this tutorial I will show you how to create a MSI installer for JavaFX application on Windows 10 x64. As of JavaFX 2.2, in order to generate a MSI package, you must have WiX Toolset 3.7 or higher installed and available on the PATH.
To install WiX Toolset Setup:
2. Double-click the file to launch the installer.
3. Follow the instructions in the install wizard for installing WiX Toolset.
To add WiX Toolset to the system Path variable:
1. On Windows 10, Computer, Properties, System Properties, Advanced system settings.
2. Select the Advanced tab and click the Environment Variables button.
3. In the System Variables pane, double-click the PATH variable.
4. In the Edit System Variable dialog box, add a semicolon followed by a new path to the Variable value field. for example, C:\Program Files (x86)\WiX Toolset v3.11\bin
5. Click OK to close all the open dialog boxes.
To create MSI Packaging in JavaFX Projects
1. Right-click the project node in the Projects window and select Properties from the context menu.
2. In the Project Properties dialog box, choose Deployment in the Build category and select the Enable Native Packaging option.
3. Click OK.
4. To clean and build your project, Choose Run, Clean and Build Project from the main menu.
For example,
These instructions will produce a self-contained application package in the form of a .msi file
By default, system-wide installation, System-wide installation results in a package installed into a shared location and can be used by any user on the system.
%ProgramFiles%
e.g. C:\Program Files
Q: I got an error of
JavaFX deployment library not found in active JDK.
Please check that the JDK is correctly installed and its version is at least 7u4 on Mac or 7u6 on other systems.
BUILD FAILED (total time: 2 seconds)
A: Try to use JDK 8.
#javafx #msiinstaller #WiXToolset
To install WiX Toolset Setup:
2. Double-click the file to launch the installer.
3. Follow the instructions in the install wizard for installing WiX Toolset.
To add WiX Toolset to the system Path variable:
1. On Windows 10, Computer, Properties, System Properties, Advanced system settings.
2. Select the Advanced tab and click the Environment Variables button.
3. In the System Variables pane, double-click the PATH variable.
4. In the Edit System Variable dialog box, add a semicolon followed by a new path to the Variable value field. for example, C:\Program Files (x86)\WiX Toolset v3.11\bin
5. Click OK to close all the open dialog boxes.
To create MSI Packaging in JavaFX Projects
1. Right-click the project node in the Projects window and select Properties from the context menu.
2. In the Project Properties dialog box, choose Deployment in the Build category and select the Enable Native Packaging option.
3. Click OK.
4. To clean and build your project, Choose Run, Clean and Build Project from the main menu.
For example,
These instructions will produce a self-contained application package in the form of a .msi file
By default, system-wide installation, System-wide installation results in a package installed into a shared location and can be used by any user on the system.
%ProgramFiles%
e.g. C:\Program Files
Q: I got an error of
JavaFX deployment library not found in active JDK.
Please check that the JDK is correctly installed and its version is at least 7u4 on Mac or 7u6 on other systems.
BUILD FAILED (total time: 2 seconds)
A: Try to use JDK 8.
#javafx #msiinstaller #WiXToolset
Комментарии