关于Access restriction: The type 'Application' is not API (restriction on required library)

原文链接:http://rxxluowei.iteye.com/blog/671893

今天写第一次写JavaFX的入门程序就GG

遇到了导入API的问题,无奈疯狂地通过网络找解决方案..

我的问题是: 导入import javafx.application.Application;时 出现这个错误提示

 

Access restriction: The type 'Application' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_111\lib\ext\jfxrt.jar')

解决方法: 
Project -> Properties -> libraries, 
先remove掉JRE System Library,然后再Add Library重新加入。 

转载于:https://www.cnblogs.com/Lionel002/p/6032260.html

你可能感兴趣的:(关于Access restriction: The type 'Application' is not API (restriction on required library))