eclipse中出现The con“structor 'NimbusLookAndFeel()' is not API ”的解决办法

来源:互联网 发布:守望先锋最新伤害数据 编辑:程序博客网 时间:2024/05/29 10:54

在eclipse中,有时会出现如下的错误:
这里写图片描述
这里写图片描述
它提示的错误信息是这样子的:
Access restriction: The constructor ‘NimbusLookAndFeel()’ is not API (restriction on required library ‘D:\java66\jre\lib\rt.jar’)
然后我的解决办法就是:
把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。
在此附上图片:
这里写图片描述
这里写图片描述
这里写图片描述

0 0
原创粉丝点击