在eclipse里出现“The type **** is not accessible due to restriction on required library”的错误,大概的意思就是要导入的包被限制了。 ? 解决方法: ? 选中项目--右键--进入Properties(属性)视图 ? 选中Java Build Path--点击Libraries--展开JRE System Library[JavaSE-1.6],选中Access rules这一项(如果没有,那就是JDK安装和配置的问题)。 ? ?Edit--点击Add--在Rule Pattern(规则式样)编辑你允许导入的类库,如本例中输入(javax/servlet/**),允许就是在Resolution选项中选中Accessible(当然,有些项目需要可以选择Forbidden、Discourage某些类库)。 ? ?然后重启就可以了。
详细解决方案
【转】关于“The type * is not accessible due to restriction on required library”有关问题的
热度:5234 发布时间:2013-02-26 00:00:00.0
相关解决方案
- 新手,请问input type=text有关问题
- 不走"<script type='text/javascript'>"标签咋回事
- input type=text 替空时 ,为什么不为null
- <script type="javascript/text">的有关问题
- unsupported content type in editor解决思路
- SonyEricsson_W800 Couldn't load zayitlib.dll library?解决思路
- 怎样用android重写j2me,player里的createPlayer(InputStream stream, String type)解决方案
- <input type="file" name="filename">该如何处理
- <input type="file" name="filename">解决方法
- LINQ to sQL:业务层多个Class Library,or 只用一个?该如何解决
- 企业库的优缺点?Enterprise Library,该如何解决
- vc++.net中的有关问题( error C2440: 'type cast' : cannot convert from 'CString' to 'const char *')
- Cannot marshal 'return value' Invalid managed/unmanaged type combination.解决思路
- 水晶报表-Exception of type 'System.OutOfMemoryException' was thrown.解决思路
- 水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
- 水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
- magaView.HasMonth = db.Library.GroupBy(a => a.TimeBook.Month).Select(a => a.Key),该怎么处理
- 自定义控件,怎么输出<input type="hidden" />的input
- input type="file" 下传文件有关问题
- 请问怎么限制<input type="text">的最小和最大值
- 关于Enterprise Library 4.1的安全跟错误处理
- asp.net 点击<input type="image" src="del.gif" /> 为什么会刷新页面!解决方法
- input type="radio"圆圈大小如何控制呢
- <input type="radio" id="rbtnSing" runat="server"后台取值有关问题
- asp.net 中怎样实现 <input type="reset" 。这样的。解决办法
- 让.aspx页面里没有<input type="hidden" name="VIEWSTATE" id="VIEWSTATE"该怎么处理
- 100分,求不用<input type="file"/>上传图片方法,该怎么处理
- 去掉.net页面中的<input type="hidden" name="VIEWSTATE" id="VIEWSTATE"该怎么解决
- <input type="date" runat="server">为什么会出错呢?该怎么解决
- input type=file “maxlength”这个属于最大值到底是多少解决方案