Access restriction: Class is not accessible due to restriction on required library 错误

Eclipse下新建工程后出现以上处错误, 代码是之前工程中导入的,已经成功编译且执行过,看来是Eclipse本地的设置原因。


解决办法:

如下步骤修改编译选项即可:

Windows -> Preferences -> Java -> Compiler -> Errors/Warnings



你可能感兴趣的:(eclipse,windows,Class,Access,library,compiler)