Restriction problems in eclipse
来源:互联网 发布:淘宝投诉客服人员 编辑:程序博客网 时间:2024/05/29 04:17
做NC的时候从别人那拷了个NC_DEMO结果我这报错他那没报错
importnc.bs.wfengine.engine.ext.TaskTopicResolver;
报错信息:Access restriction: The type TaskTopicResolver is notaccessible due to restriction on required libraryNC_DEMO/NC_HOME/modules/uap/META-INF/lib/uapplatform.jar
解决方案1:
Eclipse 默认把这些受访问限制的API设成了ERROR。
Windows -> Preferences -> Java-> Compiler -> Errors/Warnings->
Deprecated and trstricted API -> Forbidden reference(access rules): -> change towarning
解决方案2:
只需要在project build path中先移除JRE System Library,再添加库JRE SystemLibrary,重新编译后就一切正常了。
解决方案3:
工程上右键->工程属性->java builderpath->Libraries标签,点击JRE System Library里面的Accessrules,add sun/** 为accessible,如果该项存在,就edit。
解决方案4:
Windows -> Preferences -> Java-> Installed JREs -> 选择用的JDK-> Edit -> Add ExternalJARs
俺试了下1,4可行。。。我只是我的,具体每个的差别没研究,谁有研究 给个消息
importnc.bs.wfengine.engine.ext.TaskTopicResolver;
报错信息:Access restriction: The type TaskTopicResolver is notaccessible due to restriction on required libraryNC_DEMO/NC_HOME/modules/uap/META-INF/lib/uapplatform.jar
解决方案1:
Eclipse 默认把这些受访问限制的API设成了ERROR。
Windows -> Preferences -> Java-> Compiler -> Errors/Warnings->
Deprecated and trstricted API -> Forbidden reference(access rules): -> change towarning
解决方案2:
只需要在project build path中先移除JRE System Library,再添加库JRE SystemLibrary,重新编译后就一切正常了。
解决方案3:
工程上右键->工程属性->java builderpath->Libraries标签,点击JRE System Library里面的Accessrules,add sun/** 为accessible,如果该项存在,就edit。
解决方案4:
Windows -> Preferences -> Java-> Installed JREs -> 选择用的JDK-> Edit -> Add ExternalJARs
俺试了下1,4可行。。。我只是我的,具体每个的差别没研究,谁有研究 给个消息
- Restriction problems in eclipse
- eclipse problems
- open_basedir restriction in effect
- Problems when building and running Nutch in eclipse
- Eclipse Access restriction
- Eclipse Access Restriction
- Eclipse Access Restriction
- eclipse:Access restriction Error
- 【Eclipse】Access restriction:
- **Eclipse Access Restriction**
- Booting problems in Solaris
- 99 Problems in Scala
- 解决Eclipse Access restriction: 问题
- 解决Eclipse Access restriction: 问题
- Eclipse中的Access restriction错误
- Eclipse错误提示:Access restriction
- 解决Eclipse Access restriction问题
- eclipse 显示 Problems view
- Android软件开发之盘点界面五大布局(十六)
- 浅析如何让Spring 来管理Action的配置方法
- 近期学习android总结
- Varnish(性能调优篇)
- 上传附件到数据库。
- Restriction problems in eclipse
- VC51中文标识符工具使用说明
- [Linux] 加一个修复中文文本编码的快捷方式——方案篇
- UIWebView控件的简易浏览器小案例
- Linux 下 Mysql 设置 远程连接
- GIS程序设计报告(精品)
- Android中Notification详解【android进化三十五】
- javascript 笔记
- linux c 多线程执行顺序解析