Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Access restriction error? not sure how to fix it....

807588Apr 29 2009 — edited May 19 2009
I am trying to use JPEGImageEncoder and i imported import com.sun.image.codec.jpeg.*; fine but i get the following error on my code:
CODE:
JPEGImageEncoder encoder =JPEGCodec.createJPEGEncoder(outImage);

ERROR:
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library /usr/local/java/jdk1.6.0_07/jre/lib/rt.jar
I am not sure how to fix this... anyone know what needs to be done? I am using eclipse and i see the rt.jar in my library....
thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2009
Added on Apr 29 2009
8 comments
271 views