I am trying to run JavaFX 11 on NetBeans 9
Since JDK 11 does not have JavaFX anymore I couldn't get NetBeans to run a JavaFX project, it says: "Failed to automatically set-up a JavaFX Platform."
I then downloaded the javafx11 from this website https://gluonhq.com/products/javafx/, after following the tutorial I was able to compile and run a JavaFX class normally through terminal. The only way I could add JavaFX is by using Maven, but I can't run the application even that it was built successfully.
Error: JavaFX runtime components are missing, and are required to run this application
Command execution failed.
Is there any other way to run JavaFX 11 with NetBeans? or maybe Eclipse?
Maybe a late answer, but, it is possible to have javafx 11 maven project + NetBeans 9.
Main.java:
MainApp.java:
Your pom.xml should look like this:
This will work in netbeans without any issues. Basically, what you need to do is start new maven project and after you finish setting project just replace pom.xml.
This way your code will run from IDE, and will compile correctly so that you can run it from command line with java --jar. Also, you will be able to run NB debugger.