Eclipse下BASE64Decoder提示错误的解决办法
来源:互联网 发布:wp软件 编辑:程序博客网 时间:2024/05/10 14:39
在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不提示的解决办法
- netfilter/iptables全攻略
- 目标二
- python学习-知识点记录(Temp)
- Unix / Linux 线程的实质
- Tomcat打开失败
- Eclipse下BASE64Decoder提示错误的解决办法
- mysql索引需要了解的几个注意
- 凸包问题的五种解法
- shell数组的使用
- Microsoft Outlook 2010配置
- 权限管理表设计详细
- 用R来进行股票分析
- 协同开发中SVN的使用规范
- 欢迎使用CSDN-markdown编辑器