OpenJDK does not work with javafx

2019-09-15 19:15发布

问题:

I have just installed Fedora 21 on my laptop and installed OpenJDK8(JDK), Netbeans and SceneBuilder.When I create a new JavaFX project the following message appears: I can only fix it if I add the Oracle Java 8 under Manage Platform. How can I get these done with OpenJDK only?

回答1:

Where from did you install openjdk? If used the one coming from fedora it does NOT have javafx with it which sort of is ok from the fedora point of view because JavaFX - although it is an openjdk project - is not jsred and so there's not must to include it.

IIRC the problem for Fedora and other linux distros was/is that they did not get some of the native parts built from Source which is something they require for all stuff they ship!