Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library D:\Program Files\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_1.6.0.u43\jre\lib\rt.jar
myeclipse默认把这些受访问限制的API设成了ERROR , 改为Ignore或Warning即可