VSCode配置JAVA开发环境时的jdk11版本提示问题解决方案

xingyun86 2020-8-19 1631

VSCode配置JAVA开发环境时的jdk11版本提示问题解决方案

下载jdk11:(OpenJDK11U-jdk_x64_windows_hotspot_11.0.8_10.zip)

https://adoptopenjdk.net/

配置文件user.json添加以下内容:

{
    "java.home": "C:/Program Files/AdoptOpenJDK/jdk-11.0.8+10-hotspot/jdk",
    "maven.terminal.useJavaHome": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "java.configuration.runtimes": [
        {
          "name": "JavaSE-1.8",
          "path": "C:/Program Files/Android/jdk/microsoft_dist_openjdk_1.8.0.25/bin",
        },
        {
          "name": "JavaSE-11",
          "path": "C:/Program Files/AdoptOpenJDK/jdk-11.0.8+10-hotspot/jdk/bin",
          "default": true,
        },        
      ],
      "java.semanticHighlighting.enabled": true,
      "java.configuration.checkProjectSettingsExclusions": false,
}


×
打赏作者
最新回复 (0)
只看楼主
全部楼主
返回