Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
来源:互联网 发布:分层数据分析 编辑:程序博客网 时间:2024/06/06 04:54
错误信息:
Access restriction: The constructor SunJCE() is not accessible due to restriction on required library C:\Program Files \Java\jre7\lib\ext\sunjce_provider.jar
Access restriction: The type TaskTopicResolver is not accessible due to restrict
做NC的时候从别人那拷了个NC_DEMO结果我这报错他那没报错
import nc.bs.wfengine.engine.ext.TaskTopicResolver;
报错信息:Access restriction: The type TaskTopicResolver is not accessible due to restriction on required library NC_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 to warning
解决方案2:
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
import nc.bs.wfengine.engine.ext.TaskTopicResolver;
报错信息:Access restriction: The type TaskTopicResolver is not accessible due to restriction on required library NC_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 to warning
解决方案2:
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案3:
工程上右键->工程属性->java builder path->Libraries标签,点击JRE System Library里面的Access rules,add sun/** 为accessible,如果该项存在,就edit。
解决方案4:
Windows -> Preferences -> Java -> Installed JREs -> 选择用的JDK -> Edit -> Add External JARs
反正我用解决方案1不行,治标不治本。我也是用的方案二解决的,应该是路径问题,重新添加路径应该就对了。
0 0
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第一种,OK。
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type * is not accessible due to restrict,报错问题.
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type * is not accessible due to restrict
- Access restriction: The type * is not accessible due to restrict
- 解决“Access restriction: The type BASE64Encoder is not accessible due to restrict”的问题
- Eclipse报错:Access restriction: The type * is not accessible due to restriction on required libray
- Eclipse报错Access restriction: The type BASE64Encoder is not accessible due to restriction on required
- 报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library
- SQL Server2005 异常处理机制(Begin try Begin Catch)
- UVA 1399 - Puzzle(AC自动机+DP)
- from makefile which i did not make it as a file
- openGL学习笔记3
- 磁盘与文件系统
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- HDU-4968 Improving the GPA 暴力枚举
- (leetcode)Linked List Cycle
- list add方法
- 如何培养孩子主动学习兴趣
- OpenERP Server Developers Documentation之Form Views Guidelines(表单视图参考)
- POJ 3623 Best Cow Line, Gold(贪心)
- Ubuntu 14.04下升级GNOME至3.12
- Apache Mina 学习笔记(7) - Handler