Eclipse下BASE64Decoder提示错误的解决办法
来源:互联网 发布:天龙八部手游 知乎 编辑:程序博客网 时间:2024/05/18 00:18
在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
- Eclipse下BASE64Decoder提示错误的解决办法
- Eclipse下BASE64Decoder提示错误的解决办法
- Eclipse下BASE64Decoder提示错误的解决办法
- Eclipse下BASE64Decoder提示错误的解决办法
- Eclipse下BASE64Decoder提示错误的解决办法
- Eclipse报错找不到sun.misc.BASE64Decoder类的解决办法!
- 开发环境下未找到 BASE64Encoder及BASE64Decoder的解决办法
- 找不到 Class BASE64Decoder 的解决办法
- eclipse中jquery.js文件有错误提示的解决办法
- android eclipse编译时提示的错误及解决办法
- eclipse安装插件提示Duplicate Location错误的解决办法
- eclipse中解除jdk的访问限制和打点提示(以BASE64Encoder/BASE64Decoder为例)
- Ubuntu下打开COM端口时提示错误的解决办法
- Ubuntu下编译Coin3D时,提示“cc_debugerror_post”错误的解决办法
- BASE64Decoder错误
- Eclipse无提示的解决办法!
- Eclipse无提示的解决办法!
- Eclipse不提示的解决办法
- php 字符数组转php数组
- vs调试 lib dll
- C#操作水晶报表跟转换成PDF格式
- PHP初学之语法
- nyoj737石子合并【区间dp】
- Eclipse下BASE64Decoder提示错误的解决办法
- Python-语法
- Android学习笔记之:android更新ui的几种常用方法
- Android中Canvas绘图基础详解(附源码下载)
- use of '@import' when modules are disabled
- [伪科学]如何使用程序探究彩票的奥秘
- 搜索&运行whalesay镜像
- ios5 模拟器上没 home键,怎么返回的
- C#多线程编程