title: Java on VSCode Extension Pack for Java can't detect jdk
body: <p>I am trying to run java on vscode however the 'Extension Pack for Java' keeps asking me to redownload the jdk. I am able to run java on intellij and have been using that but since I use vscode for everything else I would like to get it to work on my main editor.</p>
  <p>Here are the settings related to java</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>"java.help.firstView": "gettingStarted",
      "java.home":"/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java",
      "java.jdt.ls.java.home": "/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java",
      "java.configuration.runtimes": [
    {
      "name": "JavaSE-17",
      "path": "/Library/Java/JavaVirtualMachines/microsoft-17.jdk/Contents/Home/bin/java",
    },
    {
      "name": "JavaSE-17",
      "path": "/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java",
    },
    {
      "name": "JavaSE-17",
      "path": "/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java",
      "default": true
    },
  ],</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/bfyGS.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><em>Error</em>
  The java.home variable defined in Visual Studio Code settings points to a missing or inaccessible folder (/Library/Java/JavaVirtualMachines/adoptopenjdk-17.jdk/Contents/Home)</p>
  <p>any ideas?</p>
  <p>All other languages I use work fine, it just seems to be java.</p>