Access restriction: The type 'BASE64Encoder' is not API (restriction on required library 'D:\Java\jdk1.6.0_43\jre\lib\rt.jar')
eclipse引入import sun.misc.BASE64Encoder; 是红叉,怎么解决?
工具/原料
eclipse
方法/步骤
右键项目,点属性(Properties);
java bulid path-->Libraries-->jre System Library;
Access Rules-->Edit;
Add,resolution选择accessible,下面填上** 点击确定即可!
5
这时项目就不再报错了;