JavaFX Project Packaging Example
English | 中文
java21
Package amodular
JavaFX project usingMaven
,Gradle
, andGraalVM
.java21-non-modular
Link Package anon-modular
JavaFX project usingMaven
.java22-win32
Link A JavaFX project that implements Windows global keyboard event listening by utilizing theForeign Function and Memory (FFM) API
.
PowerShell:
$env:JAVA_HOME = "C:\CommandLineTools\Java\jdk-21\"
$env:GRAALVM_HOME = "C:\CommandLineTools\Java\graalvm-jdk-21.0.2+13.1\"
Gradle:
.\gradlew.bat jpackageImage
.\gradlew.bat jpackage
Maven:
mvn clean
mvn package
mvn exec:exec@image
mvn exec:exec@installer
GraalVM:
.\gradlew.bat nativeRunAgent
.\gradlew.bat nativeBuild
.\gradlew.bat nativeRun
mvn -Pwin gluonfx:build
mvn -Pwin gluonfx:run
mvn -Pmac gluonfx:build
mvn -Pmac gluonfx:run