title: Error: Build path specifies execution environment JavaSE-10. There are no JREs installed in the workspace that are strictly compatible.
body: <p>I'm having issues with setting up the JREs in my VSCode workspace. I thought the issue was correctly setting up my <code>java.home</code> in my <code>settings.json</code> but I'm still getting this error:</p>
  
  <p><code>Build path specifies execution environment JavaSE-10. There are no JREs installed in the workspace that are strictly compatible.</code></p>
  
  <p>I've looked at the answer here (<a href="https://stackoverflow.com/questions/3138384/warning-build-path-specifies-execution-environment-j2se-1-4">Warning - Build path specifies execution environment J2SE-1.4</a>) but the solution is for Eclipse and not VSCode.</p>
  
  <p>I think it is because the JRE is specifying Java10 and I'm using Java11. </p>
  
  <p>Any suggestions on how to set up the JRE for VSCode? </p>
  
  <p>Also, here is the java version I'm using and my settings.</p>
  
  <pre><code>$ /usr/libexec/java_home -V
  
  Matching Java Virtual Machines (1):
      11.0.1, x86_64: "Java SE 11.0.1"    /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
  </code></pre>
  
  <p>And my <code>java.home</code> settings in VSCode:</p>
  
  <p><code>"java.home": "/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home"
  </code></p>