본문 바로가기
IT오류잡기

[VS code] Spring boot gradle로 build 시 나는 오류

by 고집프로그래머 2020. 3. 30.
반응형

> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

 

Gradle | Search for Help with Gradle

 

gradle.org

 

위와같은 오류가 났습니다..

아마 버전이 다른거로 보이는데요 ..

 

해당 해결방안은 버전이 달라서 그랬던거 같아요.

 

File>preferences>setting

들어가시면, 검색란에 jdk를 검색 후 setting.json를 들어갑니다

보니까 java.home 설정에 jdk 1.8이라 버전이 상당히 낮음으로 보입니다.

 

최신 jdk를 다운로드 후 경로를 바꾼다음 다시 시작 해 보았습니다.

 

 

728x90
반응형

'IT오류잡기' 카테고리의 다른 글

크롬 원격데스크톱 오류 해결  (0) 2018.10.26