taylorialcom/ Tools

Installing Java and JavaFX

Install Java 21 JDK

Figure 1: Java Download)

Install JavaFX 21

Figure 2: JavaFX Download)

Install Scene Builder 21.0.0

Configure IntelliJ

Set the Project SDK

Add JavaFX to Global Library

Set Run Configuration Template for Application

--module-path "C:\Program Files\Java\javafx-sdk-21.0.2\lib" --add-modules=javafx.controls,javafx.fxml

New IntelliJ Project

All of the steps above must be implemented once, but you'll need to do the following for each new IntelliJ project.

Add the JavaFX SDK library

1

You may need to update the version number on the javafx-sdk in a similar way to a JDK version change.

2

If the version of the JDK is different, you will need to use the new version number in the rest of the instructions. E.g., if the version of JDK is 21.0.2, you should replace jdk-21 with jdk-21.0.2.