---
title: "Eclipse 编译错误 Access restriction:"
author: "strutsliu"
date: "2012-05-02T08:59:42Z"
tags: []
categories: ["开源软件"]
slug: "eclipse-access-restriction"
draft: false
lastmod: "2012-05-02T08:59:42Z"
id: 1506629
url: "https://strutsliu.iteye.com/blog/1506629"
---

Eclipse 编译时报错： 
        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 重新加入。 
转载自http://blog.csdn.net/defonds/article/details/6314723