com.sun.image.codec.jpeg找不到包解决方法
2017-07-21 18:40
1011 查看
在MyEclipse中处理图片,需要引入两个包:
2
报错:
此时解决办法:
MyEclipse默认把这些受访问限制的API设成了ERROR。
只要把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。
import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGImageEncoder;1
2
报错:
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar1
此时解决办法:
MyEclipse默认把这些受访问限制的API设成了ERROR。
只要把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。
相关文章推荐
- com.sun.image.codec.jpeg找不到包解决方法
- 使用ANT编译项目报错 com.sun.image.codec.jpeg does not exist 解决方法
- 关于无法找到 com.sun.image.codec.jpeg 的解决方法
- 程序包com.sun.image.codec.jpeg不存在解决方法
- 使用ANT编译项目报错 com.sun.image.codec.jpeg does not exist 解决方法
- 使用ANT编译项目报错 com.sun.image.codec.jpeg does not exist 解决方法
- JPEGImageEncoder 等在com.sun.image.codec.jpeg包里面的类,编译器报错的解决方法
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
- 项目中程序包com.sun.image.codec.jped不存在解决方法
- 【问题】maven项目中com.sun.image.codec.jpeg错误解决
- eclipse里找不到com.sun.image.codec.jpeg.JPEGCodecimport与JPEGImageEncoder包和 import sun.misc.BASE64...
- Eclipse中引入com.sun.image.codec.jpeg包报错的完美解决办法
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
- mvn install com.sun.image.codec.jpeg.JPEGImageEncoder编译通不过解决
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包(转载)
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
- import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包