在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">解决方法
- Cannot marshal 'return value' Invalid managed/unmanaged type combination.解决思路
- 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的安全跟错误处理
- input type="radio"圆圈大小如何控制呢
- 100分,求不用<input type="file"/>上传图片方法,该怎么处理
- <input type="date" runat="server">为什么会出错呢?该怎么解决
- input type=file “maxlength”这个属于最大值到底是多少解决方案
- 兄弟们,你们有没有发现,使用<input type="file"> 无法得到路径?该怎么解决
- 怎么调整点击 <input type=file>浏览按钮后文件选择对话框中可选择文件类型
- 为什么小弟我把EnableViewState="false"还是出现了<input type="hidden" name="EVENTTARGET" id="EVENTTARGET" value="" />
- Enterprise Library 2.0 连接 access2003 Web.Config配置有关问题
- 怎么在cs中获取<input type="text">的值
- 使用 DataAccessApplicationBlock好? 还是使用 Enterprise Library 中的数据库访问助手类好?该如何处理
- 關於表單 添加<input type=text>解决方案
- IE跟FireFox的不兼容太烦人了!在.cs中获取<input type='file' />的FileName得到不同的值!该如何解决
- The conversion of a char data type to a datetime data type resulted in an out-of-range datetime解决方案
- 关于input type="file" 上载控件的有关问题
- input type="button"和asp:Button有什么区别?该如何处理