解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
来源:互联网 发布:sql批量insert 编辑:程序博客网 时间:2024/05/21 22:52
报错:
Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
解决方法:
Project -> Properties -> libraries,
Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
解决方法:
Project -> Properties -> libraries,
先remove掉JRE System Library,然后再Add Library重新加入。
============================================
在Eclipse中处理图片,需要引入两个包:
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
报错:
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar
此时解决办法:
Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。
优先选择第一种方法
0 0
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction .
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required libra
- Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- Eclipse :Access restriction: The type JPEGImageEncoder is not accessible due to restriction on requi
- Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- Access restriction: The type FtpClient is not accessible due to
- Access restriction: The type * is not accessible due to restrict
- Access restriction: The type * is not accessible due to restrict
- Access restriction: The type xxx is not accessible due to restriction on restriction on required l
- Notepad 格式化XML
- 基于AChartEngine绘制股票走势图----分时图一(走势柱状)
- JAVA装饰者模式
- EDIUS替换素材时如何保证原有特效不变
- leetcode-61. Rotate List
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- SQLSERVER存储过程
- Android_RxJava代替EventBus实现事件分发
- ArcGIS API for Javascript介绍
- 理解RESTful架构
- Linux下memcache的安装和启动(转)
- for循环运用之九九乘法表(C/C++)
- EXTJS 实现TabPanel 并在各个Tab页中添加js写的panel
- 第十四周项目1-(3)验证二叉排序树相关算法