import com.sun.image.codec.jpeg.JPEGCodec不通过 Eclipse找不到包

Eclipse默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。

参考博客:

使劲点我呀

原文地址:https://www.cnblogs.com/xiaoduc-org/p/5425940.html