sorry, something went wrong activating intellicode support for java. please check the "language support for java" and "vs intellicode" output windows for details.
java language server requires a jdk 17+ to launch itself
VSCODE git 연동하다가 에러가 떴다.
간단하게 환경변수를 툴에서 원하는 버전으로 설정하면 되지만,
다른 프로젝트들은 모두 1.8로 개발하기 때문에 1.8로 되어 있는 환경변수를 변경하기엔 거부감이 있었다.
📌 JDK 17을 다운로드 받기
https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
Java Archive Downloads - Java SE 17
WARNING: These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production. For production use Oracle recommends downloading th
www.oracle.com
📌 File 👉Preferences👉Settings


📌 javahome 검색 후 Edit in setting,json 클릭
👉 java.home 추가, java.configuration.runtimes 부분을 추가
*저는 java.home 으로 하니까 인식에러가 떠서 java.import.gradle.home으로 기재
*name도 내가 원하는 이름으로 기재하니까 인식에러가 떠서 아래 이미지에 있는 이름으로 변경
"java.import.gradle.home": "C:\\Program Files\\Java\\jdk-11",
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "C:\\Program Files\\Java\\jre1.8.0_351", // 기존 1.8 JDK SE
},
{
"name": "JavaSE-11",
"path": "C:\\Program Files\\Java\\jdk-11", // Open JDK 14 SE
"default": true
},
{
"name": "JavaSE-17",
"path": "C:\\Program Files\\Java\\jdk-17", // Open JDK 17 SE
}
]
<추가>
build.gradle 에러는 왜... 떴을까?
댓글