sun.misc.BASE64Encoder找不到jar包的解决方法
2016-05-19 14:21
417 查看
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
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
相关文章推荐
- spring mvc +velocity
- Framelayout的覆盖顺序
- 我眼中的Linux设备树(三 属性)
- 我眼中的Linux设备树(三 属性)
- lintcode ----合并排序数组
- Android Studio 2.2 preview发布
- 我眼中的Linux设备树(二 节点)
- mysql:视图
- vim 输入一对尖括号 <>时,怎样使光标自动移到括号中间
- 密码复杂性规则
- 我眼中的Linux设备树(一 概述)
- 顺序表应用2:多余元素删除之建表算法
- SimpleDateFormat的线程安全问题与解决方案
- 我眼中的Linux设备树(一 概述)
- 我眼中的Linux设备树(二 节点)
- js作用域
- C#不安全代码只会在使用 /unsafe 编译的情况下出现
- String与StringBuffer的区别
- Nagios安装完后status map,trends等页面访问出错之解决
- maven build脚本笔记