OpenJFX SDK module installation

  • KM03792707
  • 26-Mar-2021
  • 26-Mar-2021

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.

Summary

From Java 11 onwards, JavaFX modules are not part of the SDK, so we need to complete the process manually.

Reference

OpenJFX SDK module installationHow to install JavaFX modules.

Since JavaFX is no longer included in the JDK/JRE, must be installed the SDK module

  • Download OpenJFX SDK
  • After installation you must set the environment variables:
    • Add PATH_TO_FX as a new variable
    • {PATH to OpenJFX}\javafx-sdk-11.0.1\li

How to check if the installation was successful?

In order to check, you can type %PATH_TO_FX% in Explorer or Run and press enter, the folder of OpenJFX should appear.

JavaFX/OpenJFX application can be started using command line, but you must specify module path and modules required by application.