title: Windows Subsystem for Linux not recognizing JAVA_HOME Environmental Variable
body: <p>I'm trying to get WSL to recognize my windows installed environmental variable of JAVA_HOME. I attached of what I have in my bashrc and what I have in my windows environmental variables along with outputs from cmd and bash.
  <a href="https://i.stack.imgur.com/Y2hcZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Y2hcZ.png" alt="JAVA_HOME Env. Var."></a></p>
  
  <p><a href="https://i.stack.imgur.com/i7j86.png" rel="noreferrer"><img src="https://i.stack.imgur.com/i7j86.png" alt="&lt;code&gt;enter image description here&lt;/code&gt;"></a></p>
  
  <p>What's at the end of my bashrc:</p>
  
  <pre><code>export JAVA_HOME="/mnt/d/Program Files/Java/jdk-11.0.1"
  export PATH="/mnt/d/Program Files/Java/jdk-11.0.1/bin:$PATH"
  </code></pre>
  
  <p>CMD INPUT/OUTPUT:</p>
  
  <pre><code>C:\Users\jaall&gt;javac --version
  javac 11.0.1
  </code></pre>
  
  <p>BASH INPUT/OUTPUT:</p>
  
  <pre><code>myubuntu_name@DESKTOP-LUK3BII:~$ javac --version
  
  Command 'javac' not found, but can be installed with:
  
  sudo apt install default-jdk
  sudo apt install openjdk-11-jdk-headless
  sudo apt install ecj
  sudo apt install openjdk-8-jdk-headless
  </code></pre>
  
  <p>I've been stuck on this for awhile and can't figure it out or find a working solution online. Thanks!</p>