Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.17 KB

README.en-US.md

File metadata and controls

46 lines (40 loc) · 1.17 KB

JavaFX-Package-Sample

JavaFX Project Packaging Example

English | 中文

Branches

  • java21 Package a modular JavaFX project using Maven, Gradle, and GraalVM.
  • java21-non-modular Link Package a non-modular JavaFX project using Maven.
  • java22-win32 Link A JavaFX project that implements Windows global keyboard event listening by utilizing the Foreign Function and Memory (FFM) API.

Requirements

PowerShell:

$env:JAVA_HOME = "C:\CommandLineTools\Java\jdk-21\"
$env:GRAALVM_HOME = "C:\CommandLineTools\Java\graalvm-jdk-21.0.2+13.1\"

Getting Started

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