[Solved] Error: JavaFX runtime components are missing, and are required to run this application in IntelliJ by JetBrains.

Tech Notes
Published in
5 min readApr 24, 2022


If you’re seeing this project, you’re probably missing your JavaFX libraries and you need to add them to you IDE. I saw this error in IntelliJ by JetBrains and this tutorial shows how to fix that error in IntelliJ.

My Specs

For IntelliJ IDEA 2022.1 (Community Edition) on Windows 10/11

IntelliJ IDEA 2022.1 (Community Edition)
Build #IC-221.5080.210, built on April 11, 2022
Runtime version: amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1972M
Cores: 16
Kotlin: 221-1.6.20-release-285-IJ5080.210

My specs:

If you don’t have JavaFX SDK and jar files already, let’s go get them.

Go to the Java FX SDK Downloads page [1].

If you want an older version than the latest version, check the “Include older versions” checkbox. (it was actually hard for me to figure this out lol, the message telling you to do this is a bit small-ish)

Unzip the folder into

C:\Program Files\Java

jfx sdk folder highlighted in blue

It should look like this inside your folder:

All your libs are these .jar files, you are going to add this lib folder into your IntelliJ project.