您好,欢迎访问一九零五行业门户网

java 找不到jar怎么办

java 找不到jar怎么办?找不到jar包的解决方法
1.右键项目-》属性-》java bulid path-》jre system library-》access rules-》resolution选择accessible,下面填上** 点击确定即可!!!
推荐教程:《java学习》
2.在myeclipse中编写java代码时,用到了某个jar,import sun.misc.base64decoder.*;可是myeclipse提示: 
access restriction: the type *decoder is not accessible due to restriction on required library c:\program files\java\jre7\lib\rt.jar access restriction : the constructor *base64decoder() is not accessible due to restriction on required library c:\program files\java\jre7\lib\rt.jar
解决方案1:
只需要在project build path中先移除jre system library,再添加库jre system library,重新编译后就一切正常了。
解决方案2:
windows -> preferences -> java -> compiler -> errors/warnings -> deprecated and trstricted api -> forbidden reference (access rules): -> change to warning
以上就是java 找不到jar怎么办的详细内容。
其它类似信息

推荐信息