대학생활/객체지향개발론및실습
[Java 오류해결] java.lang.UnsupportedClassVersionError: * has been compiled by a more recent version of the Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 61.0
ImJay
2022. 11. 1. 11:16
반응형
오류내용
오류: 기본 클래스 DrawShapeApp을(를) 로드하는 중 LinkageError가 발생했습니다.
java.lang.UnsupportedClassVersionError: DrawShapeApp has been compiled by a more recent version of the Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 61.0
오류원인
Java에서 외부 프로젝트를 Import 할 때, Library version이 맞지 않을 경우 발생하는 오류인 것 같습니다.
오류해결
1. Project 폴더에서 Properties 클릭
2. Java Build Path 선택
3. Modulepath > 기존 JRE System Library 선택 후 Remove 버튼 클릭
4. Add Library 버튼 클릭 > JRE System Library 선택 > Next
5. Execution environment > 리스트 박스에서 본인 환경에 맞는 jre 선택 > Finish > Apply and close
6. 오류가 해결되었다면 JRE System Library 가 추가되고 X표시와 각종 빨간줄이 사라지게 됩니다 😀
이젠 새로운 오류가 뜬다면..?
https://develop247.tistory.com/148
[Java 오류해결] java.lang.NoClassDefFoundError: javafx/application/Application
평소 과제를 수행할 때 프로젝트를 Import 하고나면 Library 호환 문제로 컴파일이 안되곤 했었는데, 기존 JRE Library 를 삭제하고 새로운 라이브러리를 추가하는 걸로 문제를 해결했었다. 오늘도 평
develop247.tistory.com
반응형