【トラブル】【Java】【Eclipse】The type JPEGCodec is not accessible due to restriction on required library

症状

 Eclipseで、DICOMをJPEGに変換するプログラムを作成していたら、以下の【エラー内容】が出た。

エラー内容

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

解決方法

1. [Window]-[Preferences]を選択
2. [Java]-[Compiler]-[Error/Warning]を選択
3. [Deprecated and restrited APIs]-[Forbidden reference (acess rule)]で、Errorから、Ignore(無視)または、Warning(警告)を選択

後日談

 * この解決方法は、以下のような症状でも同様の対策ができた

関連記事

エラー「Access restriction:The type 'XX' is not API」が表示される

http://blogs.yahoo.co.jp/dk521123/34073566.html