前提・実現したいこと
VScodeでのJavaおよびSpringの開発環境構築につまずいています。
パスが通ってないとかそういう類の話だとは思うのですが、独力では解決できないのでご教示お願いいたします。
発生している問題・エラーメッセージ
VScode上で
Couldn't start client Java Language Server
ソース:Java Language Support
および
Running the contributed command: 'java.execute.workspaceCommand' failed.
ソース:Debugger for Java
と表示されます。
試したこと
・Windowsの環境変数設定で、
変数名JAVA_HOMEにC:\Program Files\Java\jdk-16を指定し、
PathにC:\Program Files\Java\jdk-16\binを追加。
・VScodeのJava Extention Packの設定のJava:homeの項目に
C:\Program Files\Java\jdk-16を指定
補足情報(FW/ツールのバージョンなど)
・build.gradleの中身は以下の通りです
plugins {
id 'org.springframework.boot' version '2.5.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0'
implementation group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
test {
useJUnitPlatform()
}
あなたの回答
tips
プレビュー