解决:
Windows->Preferences->Java->Complicer->Errors/Warnings
将 Deprecated and restricted API 中的 Forbidden references(access rules) 选为Warning就可以了
Access restriction: The method createJPEGEncoder(OutputStream) from the type JPEGCodec is not access
原文:https://www.cnblogs.com/love-dream-88/p/11572035.html