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库

 


版权声明:本文为u012169821原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。