How To Deploy an Executable JavaFX 19 JAR, exe, msi Using IntelliJ 2022.3.1 on Windows 11 x64 (3-3)

preview_player
Показать описание
This tutorial explains how to create a self-contained JavaFX 19 application using JPackage, including all required dependencies. The tool allows you to produce a native package in .exe or .msi format on Windows 11 x64.

The JPackage tool has several options that allow you to customize the packaged application, such as:

--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:

You must download and install the following software:

The installed directories are:

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

JPackage command

Рекомендации по теме
Комментарии
Автор

I get this error in the terminal if you know how to fix it please help me
"jpackage : The term 'jpackage' is not recognized as the name of a cmdlet, function, script file, or operable program Check the spelling of the name, or if a path was included, verify that the path is correct and try again"

sultanalshehry