Access restrictions on Jars
2010-11-12 18:22
232 查看
在Eclipse中编写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
搞不懂是为什么,只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
但是我仍然很疑惑是为什么。。。
1. Open project properties.
2. Select Java Build Path node.
3. Select Libraries tab.
4. Remove JRE System Library.
5. Add Library JRE System Library.
非常神奇。
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
搞不懂是为什么,只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
但是我仍然很疑惑是为什么。。。
1. Open project properties.
2. Select Java Build Path node.
3. Select Libraries tab.
4. Remove JRE System Library.
5. Add Library JRE System Library.
非常神奇。
相关文章推荐
- Access restrictions on Jars 错误
- You don't have permission to access / on this server.
- WampSever 远程访问出现Forbidden You don’t have permission to access / on this server.解决方法
- 彻底地/ 终于地, 解决 关于apache 权限的问题了:: 修改 DocumentRoot后的 403错误: have no permission to access / on this server
- No 'Access-Control-Allow-Origin' header is present on the requested resource.'Ajax跨域访问解决方案
- Mac中第一次使用Android Studio出现unable to access android sdk add-on list的解决方法
- No 'Access-Control-Allow-Origin' header is present on the requested resource
- Unable to access Andriod SDK add-on list
- How to access gridview cell values on client side
- ORA-39181: Only partial table data may be exported due to fine grain access control on "OE"."PURCHAS
- 您想知道如何在Access 2003中使用ON UPDATE CASCADE/ON DELETE CASCADE,ON UPDATE SET NULL/ ON DELETE SET NULL吗?
- android studio 启动出现Unable to access Android SDK add-on list错误
- wampserver出现You don’t have permission to access/on this server
- High Waits on 'Db File Sequential Read' Due to Table Lookup Following Index Access
- arcgis js api调用SOE 设置代理后 调用报No 'Access-Control-Allow-Origin' header is present on the requested ...
- java.lang.IllegalStateException: closed when trying to access response in onResponse(Response respon
- WAMP权限设置-Apache:You don't have permission to access / on this server. 96 作者 Wing_Li 关注 2016.06.12 1
- [error]Access restriction on class due to restriction on required library rt.jar
- Android Studio unable to access android sdk-on list 错误