`
rxxluowei
  • 浏览: 34234 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类

Access restriction:The type JPEGCodec is not accessible due to restriction on re

阅读更多
报错:
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重新加入。
分享到:
评论
5 楼 wmy521 2017-12-25  
楼主太牛逼了
4 楼 jsruth 2013-02-05  
果然可以,就是不明白为什么
3 楼 tss0823 2012-07-10  
赞,问题解决,但还不知道其中的原理。。。
2 楼 dinglinan 2011-09-28  
楼主帅的一套糊涂啊!!!!!!问题搞定!!!!!
1 楼 hrxzw 2011-05-12  
问题解决了,呵呵,谢谢LZ分享!

相关推荐

    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。只要...

    eclispe错误

    在错误信息中,我们看到 "Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar",这表明你尝试访问的 `JPEGCodec` 类受到了...

    解决eclipse导入rt包问题

    然而,在使用Eclipse开发环境中导入这两个类时,可能会遇到访问限制错误:“Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt...

    Eclipse中引入com.sun.image.codec.jpeg包报错的完美解决办法

    但是,有时引入这两个包时会报出错误:`Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:/Java/jre1.6.0_07/lib/rt.jar`。 解决方法一:修改全局属性 ...

    java识别验证码.docx

    Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar ``` **解决方案:** 1. **调整Eclipse配置**:Eclipse默认将这些受...

Global site tag (gtag.js) - Google Analytics