解决MyEclipse报错问题

转载文章。
 
做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,重新编译后就一切正常了。 

解决方案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,4可行。。。我只是我的,具体每个的差别没研究,谁有研究 给个消息
 
 
 
 
http://downloads.myeclipseide.com/downloads/products/eworkbench/2013/installers/myeclipse-pro-2013-SR2-offline-installer-windows.exe

MyEclipse 2013 SR2 (Windows)

The Windows All-in-One installer includes everything you need to get up and running on Eclipse - no additional Eclipse installations required. Works with 32 and 64 bit installations.

这是myeclipse官网 http://www.myeclipseide.com/index.php?name=Recommend%5FUs&req=Download&version=ME
 
 
 

转载于:https://www.cnblogs.com/wozijisun/p/4609437.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值