Access restriction: The type 'BASE64Encoder'

Access restriction: The type 'BASE64Encoder' is not API (restriction on required library 'D:Javajdk1.6.0_43jrelib t.jar')

eclipse引入import sun.misc.BASE64Encoder; 是红叉,怎么解决?

1:右键项目,点属性(Properties)

2:java bulid path-->Libraries-->jre System Library;

3:Access Rules-->Edit;

4:Add,resolution选择accessible,下面填上** 点击确定即可!

这时项目就不再报错了

文章转载于网络,如有侵权,请原创留言;内容如有不妥,请各位园友提宝贵意见或建议。所有文章均处于编辑状态。。。。。。百度贴吧:流水小桥吧 如有问题,请点击页面左上角“给我写信”发邮件留言!
原文地址:https://www.cnblogs.com/flyoung/p/4791133.html