sun.misc.BASE64Encoder找不到jar包的解决方法
来源:互联网 发布:ubuntu16开通22端口 编辑:程序博客网 时间:2024/06/03 07:17
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
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
0 0
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法(eclipse中红叉)
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- sun.misc.BASE64Encoder找不到jar包的解决方法
- 解决Xcode删除文件造成的 missing file 警告
- LabVIEW如何实现界面跳转
- monkey 测试
- jQuery JSON
- uva 11657 - Rational Billiard(数学)
- sun.misc.BASE64Encoder找不到jar包的解决方法
- 使用srvany.exe把程序安装成windows服务
- HDU 1075 What Are You Talking About Trie题解
- POJ 2155 Matrix (二维线段树)
- iOS瀑布流视图控件"quilt"的用法
- 正则表达式30分钟入门教程(骗人的,我花了一个多小时)
- 查找算法
- 《学习bash》笔记--进程处理
- HDU--4788 Hard Disk Drive 水