filmov
tv
Deploy JavaFX 19 JAR, exe, msi Using Intellj 2022.3.2 on Windows 11 x64 (Full version)
Показать описание
This tutorial will take you through the steps of deploying a JavaFX 19 application as an executable jar file using IntelliJ 2022.3.2 on Windows 11 x64. The jar file will include the JavaFX application and all the necessary JavaFX library and DLL (.dll) files, so you can run the application by simply double-clicking the jar.
Furthermore, you will learn how to use JPackage to generate a standalone JavaFX 19 application that contains all required dependencies. The result will be a native package in either .exe or .msi format for Windows 11 x64.
Before you start, you need to download and install the following components:
The installation directories for these components are as follows:
C:\Program Files\Java\jdk-19
C:\Program Files\Java\javafx-sdk-19.0.2.1
C:\Program Files\Java\javafx-jmods-19.0.2.1
C:\Users\Ken\AppData\Local\SceneBuilder
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3
C:\Program Files (x86)\WiX Toolset v3.11
Step-by-Step Guide for Deploying a JavaFX 19 Application Jar using IntelliJ 2022.3.2 on Windows 11 x64:
1. Download and install the following software:
2. Set the following directories:
- Java Installation directory: C:\Program Files\Java\jdk-19
- JavaFX Installation directory: C:\Program Files\Java\javafx-sdk-19.0.2.1
3. Set environment variables:
- JAVA_HOME="C:\Program Files\Java\jdk-19"
- PATH="%JAVA_HOME%\bin"
5. Use the following VM options:
--module-path "C:\Program Files\Java\javafx-sdk-19.0.2.1\lib"
6. Deploy your JavaFX 19 application jar file using IntelliJ 2022.3.2.
7. Use JPackage to produce a self-contained JavaFX 19 application, including all necessary dependencies, in an .exe or .msi file on Windows 11 x64.
The JPackage tool provides options to customize your packaged application in various ways.
--type
The type of package to create
--input
Path of the input directory that contains the files to be packaged
--dest
Path where generated output file is placed
--main-jar
The main JAR of the application containing the main class
--main-class
Qualified name of the application main class to execute.
--module-path
The path to modular jars
--add-modules
Add list of modules
--win-shortcut
Creates a desktop shortcut for the application.
--win-menu
Adds the application to the system menu.
Source:
JPackage command
#JavaFX19 #ExecutableJar #DeployJar #CreateJar
Furthermore, you will learn how to use JPackage to generate a standalone JavaFX 19 application that contains all required dependencies. The result will be a native package in either .exe or .msi format for Windows 11 x64.
Before you start, you need to download and install the following components:
The installation directories for these components are as follows:
C:\Program Files\Java\jdk-19
C:\Program Files\Java\javafx-sdk-19.0.2.1
C:\Program Files\Java\javafx-jmods-19.0.2.1
C:\Users\Ken\AppData\Local\SceneBuilder
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3
C:\Program Files (x86)\WiX Toolset v3.11
Step-by-Step Guide for Deploying a JavaFX 19 Application Jar using IntelliJ 2022.3.2 on Windows 11 x64:
1. Download and install the following software:
2. Set the following directories:
- Java Installation directory: C:\Program Files\Java\jdk-19
- JavaFX Installation directory: C:\Program Files\Java\javafx-sdk-19.0.2.1
3. Set environment variables:
- JAVA_HOME="C:\Program Files\Java\jdk-19"
- PATH="%JAVA_HOME%\bin"
5. Use the following VM options:
--module-path "C:\Program Files\Java\javafx-sdk-19.0.2.1\lib"
6. Deploy your JavaFX 19 application jar file using IntelliJ 2022.3.2.
7. Use JPackage to produce a self-contained JavaFX 19 application, including all necessary dependencies, in an .exe or .msi file on Windows 11 x64.
The JPackage tool provides options to customize your packaged application in various ways.
--type
The type of package to create
--input
Path of the input directory that contains the files to be packaged
--dest
Path where generated output file is placed
--main-jar
The main JAR of the application containing the main class
--main-class
Qualified name of the application main class to execute.
--module-path
The path to modular jars
--add-modules
Add list of modules
--win-shortcut
Creates a desktop shortcut for the application.
--win-menu
Adds the application to the system menu.
Source:
JPackage command
#JavaFX19 #ExecutableJar #DeployJar #CreateJar
Комментарии