mingg IT

[Java] compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0 본문

BackEnd

[Java] compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

mingg123 2023. 9. 28. 23:15

상황

 

  • Spring Initializer로 java 17버전을 선택하고 spring boot 프로젝트를 Run 했는데 해당 에러를 발생하면서 실패했다. 
  • 분명히 이전에 초기 세팅할때도 겪었던 문제라서 기록해 두려고 한다.

 

해결방안

 

1. File > Project Structure 

 

SDK 버전을 17로 바꾸어 준다. 

 

 

2. Setting > Build, Execution, Deployment > Build Tools > Gradle

InteliJ IDEA로 설정해주고,

JVM을 17버전을 선택한다. 

 

 

 

빌드 성공 

 

 

두번째 겪은 문제라서 설정하는 메뉴이름이 기억이안나서 작성해두었다. 초기 세팅이 귀찮지만.. 시작이 반이니 화이팅! 

Comments