Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 报错

报错: 
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项目用自己下载的jre

posted @ 2017-04-30 15:50  小魚人  阅读(176)  评论(0编辑  收藏  举报