Access restriction: The type Resource is not accessible due to restriction on required library

  • 方法一:

全局属性Project>preferences>java>Compiler>Errors/Warnings>把右侧的【Deprecated and restricted API>Forbidden reference的Error】置为【Warning】.

 

  • 方法二(终极方法:)

 项目属性preferences>java build path>把右侧【libraries中的JRE System Library】删除重新导入.

posted on 2017-03-02 13:48  tigerloveapple  阅读(225)  评论(0编辑  收藏  举报