在JAVA项目开发中,编辑运行时出现以下错误:Access restriction required library rt.jar,这里就详细的说明一下如何解决这个问题。
经分析,出现此问题是因为Eclipse的JDK是从System library的Execution environment中选择的。
解决方法:
一.重新加入自已安装的JDK
1.进入Project —> Properties —> Java Build Path —> Libraries
2.remove 掉 JRE System Library
3.Add Library 重新加入JRE System Library
添加后即可解决此问题。
二.设置访问策略
1.点击项目菜单—>属性
2.点击左侧的“JAVA Build Path”。
3.切换到“Libraries”标签,选中“Access rules”,点击“Edit”。
4.点击“Add”按钮。
5.Resolution选择Accessible,Rules Pattern输入“**”,点击OK。
6.成功添加一条规则,点击OK。
7.这时你会发现Access rules的值已经改变,点击OK问题就解决啦。
参考文章:http://jingyan.baidu.com/article/e73e26c0da800224adb6a7b5.html
相关推荐
sun.misc.BASE64Encoder找不到jar包的解决方法?... Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on required library C:\Program files\java\jre6\lib\rt.jar
在Eclipse中处理图片,需要引入两个包: ...Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 解决方法就在这里
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 此时解决办法: Eclipse默认把这些受访问限制的API设成了ERROR。只要...
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 此时解决办法: Eclipse默认把这些受访问限制的API设成了ERROR。只要把...
312650936986754Phone.WearOS.MinSDK24-SHM1.1.1.157.root.detection.country.restriction.removed.dante63.apk
顶级pdf文件处理工具,可以有效消除pdf文档的诸多应用(例如:打印、复制粘贴等)限制。 原创优质资源,互联网独此一份,非常值得珍藏。只要下载,绝对不会后悔。
MFi 协议
电路模型和电路定律_NoRestriction习题[整理].pdf
If you copied the demo package directory, make sure the DSSM_335_V4_pkg.jar, jhall.jar, and the JRE directory were all copied. After the Demo has started, the user may wish to interact with the ...
JavaScript
[SQL Server] <-> [OLE DB] <-> [Client application]Using SQL Server Data Access gives you the following advantages: - No distribution, installation and configuration is required for BDE and ODBC;...
欧洲铁路局车辆使用限制条件编码
Tool to view the CAD output. Without restriction. Disk1.
Tool to view the CAD output. Without restriction. Disk1.
Tool to view the CAD output. Without restriction. Disk2.
Notepad++ v5.8.4 new features and fixed bugs (from v...Remove Calltip restriction from plugins side. Add "-alwaysOnTop" command line argument. Fix icon display glitch in shell extension context menu.
Some design considerations of the aggregator are also discussed together with practical constraints such as the energy restriction of the batteries. The cost function with constraints enables us to ...
电子-MSP430系列常用模块应用原理NoRestriction.pdf,单片机/嵌入式MSP430
A20-USB-Camera开发说明书-V1.0-20140605_NoRestriction.pdf