새로운생각/Java Language

Eclipse - Access restriction: The type 'BASE64Encoder' is not API(restriction on required library...)

알도 2024. 12. 11. 19:21

jar 파일을 import할때 rt.jar 파일에 직접 접근하다보니 나는 에러라고 그러더라...

 

Window>Preferences>Java>Compiler>Errors/Warnings들어가 

Deprecated and restricted API 부분에 Forbidden reference (access rules) :  Error로 되어 있는 부분을 Ignore로 변경후 Apply 해주면 해결된다.

라이브러리를 지웠다가 재설정해주면된다는데...

라이브러리 지웠다가 이클립스 실행안되서 큰일 날뻔했다..

그렇게 많이 세팅하고, 개발 해왔지만... 매번 새롭다...

이일을 언제까지 할 수 있을까...

그만하고싶다..