1. 程式人生 > >Access restriction: The type JPEGCodec is not accessible due to restriction on required library

Access restriction: The type JPEGCodec is not accessible due to restriction on required library

eclipse的設定問題,它預設把這些受訪問限制的API設成了ERROR,你只要把
Windows-Preferences-Java-Complicer-Errors/Warnings
裡面的Deprecated and restricted API中的Forbidden references(access rules)選為Warning就可以編譯通過了。在這裡插入圖片描述