Error-Access restriction: The constructor JFrame(String) is not accessible due to restriction on required library C:\Program Files\Java\jdk1.8.0_05\jre\lib\rt.jar
CODEDRAGON ㆍDevelopment/Java
반응형
오류메시지
Access restriction: The constructor JFrame(String) is not accessible due to restriction on required library C:\Program Files\Java\jdk1.8.0_05\jre\lib\rt.jar |
|
해결방법
이클립스 메뉴 > Window > Preferences
Java > Compiler > Errors/Warnings >
굵은 글씨체로 되어있는 Deprecated and restriced API 라는 메뉴 확장
Forbidden reference (access rules): 에서
Error에서 Warning으로 변경 후
Apply > OK