Install JavaFX

JavaFX can also be used via Maven/Gradle without installing the JavaFX SDK. You can skip directly to the build tools section if you want to use JavaFX with these build tools.

JavaFX can be used by downloading an appropriate JavaFX development kit. These are available in 2 flavors:

  1. JavaFX SDK
  2. JavaFX JMods

For most development tasks, JavaFX SDK is more than enough. JavaFX JMods are only required when you want to create a runtime image of your application.

Once downloaded and unzipped, we recommend setting an environment variable to this directory path to make it easier to use:

export PATH_TO_FX=path/to/javafx-sdk-14/lib
set PATH_TO_FX="path\to\javafx-sdk-14\lib"