Search code examples
javajavafxopenjfxdebian-busteropenjdk-11

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?


Solution

  • 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.