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 Maven
If you run on Linux or Mac, follow these steps:
cd CommandLine/Modular/Maven/hellofx
mvn clean javafx:run
To create and run a custom JRE:
cd CommandLine/Modular/Maven/hellofx
mvn clean javafx:jlink
target/hellofx/bin/launcher
If you run on Windows, follow these steps:
cd CommandLine\Modular\Maven\hellofx
mvn clean javafx:run
To create and run a custom JRE:
cd CommandLine/Modular/Maven/hellofx
mvn clean javafx:jlink
target\hellofx\bin\launcher