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

转载自:http://blog.sina.com.cn/s/blog_6b85e9c00100vrcm.html

两种解决方案:
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

你可能感兴趣的:(Eclipse 警告提示:Access restriction:The type JPEGCodec is not accessible due to...)