Install JavaFX and Scene Builder

Go back

The official installation instructions πŸš€ are quite complete, but it may be useful to add additional approaches if they don't work for you.

IntelliJ IDEA 2023 - JavaFX

  • Navigate to Project Structure > Libraries
  • Click on + > From Maven
    • Enter org.openjfx:javafx-fxml:18 for version 18
    • Do not check sources and javadoc unless you plan to manually handle them as they can't be in the same folder as the .jar files (edit the library file in .idea, and use a separate path).
  • πŸ” Navigate to Edit Configurations
    • press ALT-V to show the VM options input field
    • write inside --module-path lib --add-modules javafx.controls,javafx.fxml

IntelliJ IDEA 2020 - JavaFX

  • Navigate to Project Structure > Libraries
  • Click on + > From Maven
    • Enter org.openjfx:javafx-fxml:16 for version 16
    • Enable the "Download to" option leading to the lib folder
  • πŸ” Navigate to Edit Configurations
    • press ALT-V to show the VM options input field
    • write inside --module-path lib --add-modules javafx.controls,javafx.fxml

IntelliJ IDEA - Scene Builder

  • Navigate to Settings > Languages & Frameworks > JavaFX
  • Select the PATH leading to the installed Scene Builder
  • πŸ„ Use new > FXML file to create an FXML file
  • πŸ” Right-click on an FXML and select Open in SceneBuilder to...

Visual Studio - JavaFX

➑️ Refer to this video.

  • Install the JavaFX plugin
  • Navigate to view View > command palette and create a project
  • Download JavaFX jars and put them in lib
  • πŸ” Navigate to Run > add configuration > Java
    • Append to the generated file: "vmArgs": "--module-path lib --add-modules javafx.controls,javafx.fxml",