728x90
[오류]
- 스프링부트 프로젝트 소스를 import 후 실행하려 하니 오류가 발생하며 자바 파일을 인식하지못함
A problem occurred configuring root project 'xxxx'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.4.5.
Required by:
root project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.4.5
> Dependency requires at least JVM runtime version 17. This build uses a Java 8 JVM.
[원인]
해당프로젝트는 springboot 3 이상 버전으로 되어있고 IntelliJ에서는 자바 17 이상 버전으로 설정을 해야한다
[해결]
1. [파일] > [프로젝트구조 클릭]
2. [프로젝트 설정] > [프로젝트]
- SDK를 Java 17로 변경
3. [파일] > [설정] > [빌드,실행,배포] > [빌드도구] > [Gradle]
- Gradle JVM Java 17로 변경
728x90
반응형
'IntelliJ' 카테고리의 다른 글
[IntelliJ] 인텔리제이 Gradle 플러그인 안보일때 해결 방안 ( IntelliJ Gradle Toolbar 인식 오류 해결) (0) | 2025.05.23 |
---|---|
[Intellij] Community 무료 버전에서 Springboot 사용하기 (0) | 2025.05.15 |
[IntelliJ] MODULE_WORKING_DIR ( Whitelabel Error Page jsp 인식 못 할때 ) (0) | 2025.05.07 |
[IntelliJ] IntelliJ (인텔리제이) 알아두면 유용한 디버깅 단축키 (0) | 2025.05.02 |
[IntelliJ] IntelliJ (인텔리제이) 다운로드 설치 및 설정 (1) | 2025.05.01 |