JAVA8第一次使用JAVAFX问题Access restriction: The type 'Application' is not API (restriction on required lib

使用Eclipse第一次使用JDK8来构建javafx遇上编译型错误:

Access restriction: The type 'Application' is not API (restriction on required library 'E:\JAVA\jdk1.8\jre\lib\ext\jfxrt.jar')

解决方案:项目名称右键-->Build Path-->Confgure Build Path-->选择jre system library-->remove-->Add library 从新添加系统jre库

猜你喜欢

转载自blog.csdn.net/u012169821/article/details/81334060