Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Error: JavaFX runtime components are missing, and are required to run this application while opening executable jar

I've build executable jar using NetBeans IDE 11.0 but when I open jar using :

hemlata@hemlata-pc:~/NetBeansProjects/Sizing/dist$ java -jar Sizing.jar 

I'm getting

Error: JavaFX runtime components are missing, and are required to run this application

I'm using OpenJDK 11 and OpenJFX 11 on Debian 10

I've added modules in vm option

--module-path /usr/lib/jvm/openjfx11/lib/ --add-modules javafx.controls,javafx.fxml  

But this is not problem.

So how to configure JavaFX runtime components that are missing?

like image 235
Hemlata Avatar asked Jan 25 '26 13:01

Hemlata


1 Answers

I still wonder why Oracle removed JavaFX from the Java distribution and made life for us JavaFX developers such a pain.

But I would recommend to use the Java distributions from Bell soft these distributions have JavaFX included and work out of the box.

like image 71
Waverick Avatar answered Jan 27 '26 03:01

Waverick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!