본문 바로가기

툴/Eclipse

Access restriction: The type Resource is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar

[현상]

import javax.annotation.Resource; 코드 부분에서

Access restriction: The type Resource is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 에러 발생

[원인]

찾지못함

[해결]

http://darkryu.egloos.com/3267550

http://blog.naver.com/puteri?Redirect=Log&logNo=100135783511

전자정부표준프레임워크 웹페이지에서 찾은 내용

http://open.egovframe.go.kr/projects/freediscussion/forum/1971

[요약]

Windows -> Preferences -> Java -> Compiler -> Errors/Warnings로 이동

Deprecated and restricted API Forbidden reference (access rules)" 에서 Error로 선택된것 -> Ingnore나 Warning 으로 변경