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


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

Edit: rumor is that OpenJDK9 will provide JavaFX too.


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.


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. 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.