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

   点评:Eclipse 切换JDK时是不是和上面的一样,先移除再导入?

 

posted on 2016-09-30 10:40  siwei1988  阅读(189)  评论(0编辑  收藏  举报