JavaFX 13 samples to run from Eclipse with different options and build tools
Version Eclipse: 2019-03 (4.11.0)
Download JDK 11 or later for your operating system.
Make sure JAVA_HOME is properly set to the JDK installation directory.
N.B: If you use JDK 12, install this patch from MarketPlace: Java 12 support for Eclipse 2019-03 (4.11).
For the first time only:
-
Make sure you have the Buildship Gradle Integration 3.0 plugin installed.
-
Add
org.gradle.java.hometo agradle.propertiesfile, with the path to JDK. This file can be part of the project or under the gradle user homeUSER_HOME/.gradle.
Clone the sample, open it with Eclipse and refresh the Gradle project.
Run from Gradle Tasks -> application -> run.
Run from Gradle Tasks -> other -> jlink to create a custom runtime.
On Linux or Mac run:
build/image/bin/hellofx
On Windows, run:
build\image\bin\hellofx