最新消息:

vscode-jdk-setting

vscode niuge678 334浏览 0评论

1、如果想运行ut,得需要java projects那里正确加载:

drawing

2、设置jdk是前提:

drawing

3、打开setting,点击那个button,变成json格式:

drawing

4、添加:

drawing

    "java.configuration.runtimes": [
        {
          "name": "JavaSE-1.8",
          "path": "/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home",
        },
        {
          "name": "JavaSE-11",
          "path": "/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home",
        },
        {
          "name": "JavaSE-17",
          "path": "/Users/wjsu/Library/Java/JavaVirtualMachines/corretto-17.0.11/Contents/Home",
          "default": true
        },
      ],

jdk设置完毕。

转载请注明:牛哥678 » vscode-jdk-setting

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址