title: Getting "Error: JAVA_HOME not found in your environment" when attempting to create a new Maven project in VSCode
body: <p>I'm attempting to generate a Maven project via <code>VSCode</code>'s <strong>Maven for Java</strong> extension.</p>
  <p>Here's my issue: After I click &quot;Create new Maven Project&quot; in the Explorer, choose the quickstart option, and choose the folder I want to work in, I am given an error in terminal which reads as follows:</p>
  <pre><code>Error: JAVA_HOME not found in your environment.
  Please set the JAVA_HOME variable in your environment to match the
  location of your Java installation.
  </code></pre>
  <p>Currently, my <code>JAVA_HOME</code> system variable is set as <code>C:\Progra~1\Java\jdk1.8.0_271</code>.</p>
  <p>Any suggestions for how to make this error go away? I'm not sure if it matters, but my <code>JDK</code> is installed on my C drive and I am attempting to create a project on my M drive.</p>
  <p>Thanks!</p>