Eclipse 警告提示:Access restriction:The type JPEGCodec is not accessible due to restriction on

两种解决方案:

1:Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> 改变为 warning
 
2:[Project] -> Properties -> Java Build Path -> Libraries -> Remove JRE System Library 
   Add Library -> JRE System Library -> Click OK
 
http://blog.sina.com.cn/s/blog_6b85e9c00100vrcm.html
posted @ 2014-09-12 09:53  门罗的魔术师  阅读(151)  评论(0编辑  收藏  举报