헤르메스 LIFE

[ERROR] not accessible due to restriction on required library 본문

Exception

[ERROR] not accessible due to restriction on required library

헤르메스의날개 2010. 8. 10. 10:44
728x90
개발환경 : Eclipse 3.5(Galileo)

Java Project 개발 중 아래와 같은 ERROR이 발생했습니다.
내용은 '필수 라이브러리의 제한에 의해 액세스 할 수 없다'라는 메시지입니다.
이 메시지는 정확하게 컴파일오류는 아닙니다. 그런데, 빨강으로 표시되서 기분이 안좋을 뿐이져.. ㅡㅡ;;

Multiple markers at this line
 - Access restriction: The type SunJCE is not accessible due to restriction on required library C:\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar
 - Access restriction: The constructor SunJCE() is not accessible due to restriction on required library C:\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar

해결방법
방법 1. JRE Compile path를 삭제하고, 별로의 USER LIB로 연결합니다.
방법 2. Eclipse의 Java Complie설정을 변경하면 됩니다.
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> warning 으로 변경
728x90