JavaFX 12 samples to run from IntelliJ with different options and build tools
Version IntelliJ IDEA 20189.1
Download an appropriate JDK 12 for your operating system. Make sure JAVA_HOME
is properly set to the Java 12 installation directory.
Download JavaFX jmods for your operating system and unzip to a desired location.
Clone the sample, open it with IntelliJ and import the Gradle changes. Build and run from the Gradle window.
To create custom JRE you can use the org.beryx.jlink
plugin.
To create and run the custom runtime image:
On Linux or Mac run:
./gradlew jlink
build/image/bin/hellofx
On Windows, run:
gradlew jlink
build\image\bin\hellofx