I knew that someone already asked this question, for example, this and this. But I cannot find the true answer. Can anyone explain me how to make javafx project in fedora?

My java version:

openjdk version "1.8.0_65" OpenJDK Runtime Environment (build 1.8.0_65-b17) OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)

And my netbean version:

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)

So now, I want to know how to fix it. My OS is Fedora 21, 64 bit

4 Answers 4


For the JavaFX runtime:

dnf install javafx

(This actually ends up doing the same as dnf install java-1.8.0-openjdk-javafx).

For the SDK:

dnf install javafx-devel

(This actually ends up doing the same as dnf install java-1.8.0-openjdk-javafx-devel)

This was added to Fedora around June 2017.


Just install Oracle JDK since the Fedora can't distribute closed source JavaFX within OpenJDK.

Edit: rumor is that OpenJDK9 will provide JavaFX too.


Developers who works with IntelliJ. In the first step you have to install openjfx.

sudo dnf install java-1.8.0-openjdk-openjfx-devel

After installation you can find the mandatory war files in


Now you must add these libs to your Project!

Click on your Project-> Press F4 -> Click on Global Libraries -> Click on the + -> Choose Java and use the given path from above. 

Fedora 36 here. You'll need to install OpenJFX.

$ cat /etc/fedora-release 
Fedora release 36 (Thirty Six)
$ java -version
openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment (Red_Hat- (build 17.0.6+10)
OpenJDK 64-Bit Server VM (Red_Hat- (build 17.0.6+10, mixed mode, sharing)

Just install openjfx

$ sudo dnf install -y OpenJFX

Then I can run JetUML like this:

java --module-path "/usr/lib/jvm/openjfx" --add-modules=javafx.controls,javafx.swing,java.desktop,java.prefs -jar ~/JetUML-3.5.jar 

Where /usr/lib/jvm/openjfx is the location of the OpenJFX files.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .