您的位置:首页 > 编程语言 > Java开发

Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案

2016-06-03 06:03 531 查看
Eclipse 编译错误 Access restriction:The type * is not accessible due to restriction on… 解决方案

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 重新加入。

原文链接:http://rxxluowei.iteye.com/blog/671893

好多人不明觉厉:

我认为原因是jre版本匹配问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse java