sun.misc.BASE64Encoder找不到jar包的解决方法
2016-03-11 18:22
459 查看
1.右键项目-》属性-》java bulid path-》jre System Library-》access rules-》resolution选择accessible,下面填上** 点击确定即可!!!
2.
在MyEclipse中编写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
解决方案1(推荐):
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案2:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
单纯作为笔记用途,绝无商业利益
本文来自;http://blog.csdn.net/jbxiaozi/article/details/7351768
2.
在MyEclipse中编写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
解决方案1(推荐):
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案2:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
单纯作为笔记用途,绝无商业利益
本文来自;http://blog.csdn.net/jbxiaozi/article/details/7351768
相关文章推荐
- iOS开发之详解正则表达式
- Android Support Design Library - CoordinatorLayout
- PreparedStatement动态给数据库写内容 以及之前数据库崩了的事情
- oc之id 总结思考
- Fragment overlap problem
- struts2获取session的三种方式
- C#模拟键盘输入(一)
- for+next()实现数组的遍历及while list each 的使用
- [读书笔记-代码大全]第1章 欢迎进入软件构建的世界
- POJ 2553 The Bottom of a Graph 强连通分量
- HDU 1392 Surround the Trees
- android中的文件(图片)上传
- PAT (Advanced Level) Practise 1048 Find Coins (25)
- 【读书笔记】CSS3学习(一)
- spring的lib下面的jar包与UserLibarayjar包造成的类找不到异常
- android开发50个小技巧
- 用mysqlbinlog查看row格式的事件
- Linux 内核中的 kconfig 原理
- Viewpager中的Fragment第一次点击时加载,然后保存其状态
- Codeforces Round #277 (Div. 2)(B)构造