JavaFX samples to run with different options and build tools.
Download JDK 17 or later for your operating system.
Make sure JAVA_HOME
is properly set to the JDK installation directory.
hellofx
sample modular project to run with Gradle
If you run on Linux or Mac, follow these steps:
cd CommandLine/Modular/Gradle/hellofx
To run the project:
./gradlew run
To create custom JRE you can use the org.beryx.jlink
plugin:
./gradlew jlink
build/image/bin/hellofx
If you run on Windows, follow these steps:
cd CommandLine\Modular\Gradle\hellofx
To run the project:
gradlew run
To create custom JRE with the org.beryx.jlink
plugin:
gradlew jlink
build\image\bin\hellofx