标签:
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; 是红叉,怎么解决?
1:右键项目,点属性(Properties)
2:java bulid path-->Libraries-->jre System Library;
3:Access Rules-->Edit;
4:Add,resolution选择accessible,下面填上** 点击确定即可!
这时项目就不再报错了
Access restriction: The type 'BASE64Encoder'
标签:
原文地址:http://www.cnblogs.com/flyoung/p/4791133.html