How to use JavaFX in JDK 11+ - IntelliJ

ProgrammingTutorials · 86K views · 2018 · 3:23

Open on YouTube

Software practice, open source & careersTesting, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering 'JavaFX runtime components are missing' and similar errors, because it walks through the JavaFX SDK setup that JDK 11 no longer bundles.

Recommended by 6 people across 6 different months, 2019 to 2021.

What it is

A short screen-recorded tutorial showing how to set up JavaFX in IntelliJ IDEA with JDK 11 or newer. It covers downloading the standalone JavaFX SDK from Gluon, adding it as a global library, and configuring module-info and VM options.

What people said

Recommends Tonnie · 2019-01 · Stack Overflow · on “Error: JavaFX runtime components are missing, and are required to run this application with JDK 11”

JavaFX 11 is no longer bundled with JDK , it builds on top of JDK 11 and is a standalone component. Just see this video on how to integrate them [this video] You need to download the stand-alone JavaFx here >>>> [LINK] Cheers

Recommends MS90 · 2019-02 · Stack Overflow · on “Openjfx - IntelliJ - Maven: InvocationTargetException when creating an Item”

Add all missing modules to it or if you prefer take a look at this video and follow it in order to start javafx11 [this video]

Recommends Yo Apps · 2019-04 · Stack Overflow · on “IntelliJ can't recognize JavaFX 11 with OpenJDK 11”

None of the above worked for me. I spent too much time clearing other errors that came up. I found this to be the easiest and the best way. This works for getting JavaFx on Jdk 11, 12 & on OpenJdk12 too! [this video] The Video shows you the JavaFx Sdk download How to set it as a Global Library Set the module-info.java (i prefer the bottom one) module thisIsTheNameOfYourProject { requires javafx.fxml; requires javafx.controls; requires javafx.graphics; opens sample; } The entire thing took me only 5mins !!!

Recommends Nishanth R · 2019-07 · Stack Overflow · on “Running a Java app which is compiled on 1.7 JDK with JRE 11 using JAva FX”

JavaFX 11 is no longer bundled with JDK , it builds on top of JDK 11 and is a standalone component. Just see this video on how to integrate them [LINK] . You need to download the stand-alone JavaFx here >>>> [LINK] .

Recommends Cong · 2019-09 · Stack Overflow · on “How to create a JavaFX Maven project in IntelliJ IDEA?”

It takes me a couple of hours to find the right solution. Many thanks to this video and the author: [this video] So, following the above video, I would like to recommend: Download JavaFX SDK from [LINK] Extract the zip file From the starting page of Intellij IDEA, select Configure/Structure for New Projects Select Platform Settings/Global Libraries Select the plus ("+") button/Java Find the "lib" folder inside your extracted zip file and select all of ".jar" files (except "src.zip"), and then OK Set a new name for the library, let's say "javafx-whatever-version", then Apply/OK Create a JavaFX project as normally. Select File/Project Structure... From Project Settings/Project, remember to select t

Recommends kuch · 2021-05 · Stack Overflow · on “Cannot resolve symbol 'StackPane' Intelij IDEA”

You should follow Intellij IDEA JavaFX tutorial [LINK] , especially Adding the JavaFX library [LINK] and Add VM options [LINK] . Here is post [LINK] with simillar issue. Go through this [this video] , your code works on my computer after completing this tutorial.

Cites hb23 · 2020-05 · Stack Overflow · on “JavaFX runtime components are missing - Only in a JAR File”

I'm currently working on a university assignment which requires me to create an application using Java. I'm using IntelliJ IDEA to create this JavaFX application. I can build and run the application from IntelliJ directly - I've used tutorials such as this [this video] to help me do so. This allows the application to run perfectly. However, upon building the JAR file, the application won't load, and throws the following error: Error: JavaFX runtime components are missing, and are required to run this application I can't seem to understand why this would be the case but hoping someone here might know. I've looked around for similar questions - I haven't found one where the error is ONLY when runni