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




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