Access restriction error? not sure how to fix it....
807588Apr 29 2009 — edited May 19 2009I 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!