- Java 11+
- Java SDK 16
- Javafx SDK 16
-
Set Java SDK version in File -> Project Structure -> Project
-
Link project third party libraries in File -> Project Structure -> Modules -> Dependencies
Then select lib
folder in the root of the project.
--module-path /YOUR/PATH/TO/JavaFX-lib/javafx-sdk-16/lib --add-modules javafx.controls,javafx.fxml