The import javafx cannot be resolved

前端 未结 4 1135
傲寒
傲寒 2021-01-02 03:27

I installed Eclipse IDE today on my Ubuntu Linux and then installed JavaFX using \'Install New Software\' and when I created a javafx project, I got the following error in M

4条回答
  •  别那么骄傲
    2021-01-02 04:24

    A) Make sure that you are using a compatible JDK, like 1.8, AND

    B) configure a compatible version of Java in the Eclipse Project Facets.

    1. Right click on the Java project, select Properties
    2. Select Project Facets, find Java, set version 1.8

    For Java 11, this error also appears, as JavaFX has been removed from Java 11 and comes as standalone

    More info: https://blogs.oracle.com/java-platform-group/the-future-of-javafx-and-other-java-client-roadmap-updates

提交回复
热议问题