项目报错出现:Access restriction: The type BASE64Encoder is not accessible due to restriction on required library E:\MyEclipse 2014\MyEclipse2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\jre\lib\rt.jar 怎么解决?

右键项目==>选择properties

解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction


选择左边的java bulid path==>Libraries==>jre System Library;


解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction
解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction

打开jre System Library==>Access Rules==>Edit;

解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction
解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction

打开之后选择Add,在弹出框的Resolution上选择Accessible,Rule Pattern上填入**

解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction

解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction
最后保存更改即可

相关文章: