首页 > 数据库技术 > 详细

Access restriction: The type TaskTopicResolver is not accessible due to restrict--编译Hadoop时有个SecurityUtils有错误,处理方法

时间:2014-09-14 00:05:06      阅读:414      评论:0      收藏:0      [点我收藏+]
做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,重新编译后就一切正常了。 
(我本人只用过这种方法,其他的方法不喜欢)

Access restriction: The type TaskTopicResolver is not accessible due to restrict--编译Hadoop时有个SecurityUtils有错误,处理方法

原文:http://www.cnblogs.com/sevenguin/p/3970499.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!