怎么在eclipse中查到这个类用的是哪个jar的类和Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
2014-07-24 11:02
531 查看
找到了一个办法,你先按F3,然后点击Change Attached Source..按钮,在弹出的框里有个路径,我的路径是D:/SNFWorkSpace/JAR/~importu9.jar,然后你去引用Jar包的目录中找找看有木有importu9.jar,如果存在的话就用压缩工具打开看看是不是你要的Jar包,我的是这样找到的。
当然如果以上都是正确的我会就得重新加载JRE System Library了
如果有些类一直报红,但对应的路径jar包了类库都对,就需要重新加载[b]JRE System Library才能正常识别[/b]
Eclipse 编译时报错:
Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:/Program Files/Java/jre6/lib/rt.jar
解决方法:
Project -> Properties -> libraries,
先 remove 掉 JRE System Library,然后再 Add Library 重新加入。
当然如果以上都是正确的我会就得重新加载JRE System Library了
如果有些类一直报红,但对应的路径jar包了类库都对,就需要重新加载[b]JRE System Library才能正常识别[/b]
Eclipse 编译时报错:
Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:/Program Files/Java/jre6/lib/rt.jar
解决方法:
Project -> Properties -> libraries,
先 remove 掉 JRE System Library,然后再 Add Library 重新加入。
相关文章推荐
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方法
- Access restriction: The type HttpServlet is not accessible due to restriction on required library xxxx\servlet-api.jar
- Eclipse报错:Access restriction: The type * is not accessible due to restriction on required libray
- The type HttpExchange is not accessible due to restriction on required library 错误
- eclipse导入工程出现Access restriction: The type XX is not accessible due to restriction on required