Access restriction: The type BASE64Encoder is not accessible due to restrict
来源:互联网 发布:谷歌访问助手mac版 编辑:程序博客网 时间:2024/06/08 03:10
在Eclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示:
Access restriction : The type BASE64Decoder is not accessible due to restriction on required library C:\Program
files\java\jre6\lib\rt.jar
Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on required library C:\Program files\java\jre6\lib\rt.jar
搞不懂是为什么,最后在http://forums.dzone.com/eclipse/384-access-restriction- problems.html找到答案,只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。但是我仍然很疑惑是为什么。。。
原文见:http://zhoushuyan.cn/java/the-type-base64decoder-is-not-accessible-due-to-restriction-on-required-library/
------------------------------
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
转自:
Access restriction : The type BASE64Decoder is not accessible due to restriction on required library C:\Program
files\java\jre6\lib\rt.jar
Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on required library C:\Program files\java\jre6\lib\rt.jar
搞不懂是为什么,最后在http://forums.dzone.com/eclipse/384-access-restriction- problems.html找到答案,只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。但是我仍然很疑惑是为什么。。。
原文见:http://zhoushuyan.cn/java/the-type-base64decoder-is-not-accessible-due-to-restriction-on-required-library/
------------------------------
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
转自:
http://palwang.iteye.com/blog/906425
0 0
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict on required library
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- 解决“Access restriction: The type BASE64Encoder is not accessible due to restrict”的问题
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict on required library
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type * is not accessible due to restrict
- Access restriction: The type * is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restriction on required library
- Eclipse报错Access restriction: The type BASE64Encoder is not accessible due to restriction on required
- Access restriction: The type BASE64Encoder is not accessible due to restriction on required library
- 解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction
- 【转载】cocos2d-x 2.1下使用CCLabelTTF显示汉字的问题
- 使用jquery跳转a标签
- nexus配置方法说明
- 【读书笔记】排序算法
- ZooKeeper监控
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- IE6、7下overflow:hidden失效
- 经典排序算法之冒泡排序
- UVA 216 Getting in Line
- 数组概述+数组排序+数组查找-第5天
- 单例模式的两种实现方式
- CSS3过渡和动画
- jquery获取屏幕高度
- js运算符|| &&