title: Is PATH or Java_Home messed up?
body: <p>I was able to install Java and SonarQube, configured the wrapper.conf, and adjusted the port to 9000 to make it work 3 days ago.
  Now, running StartSonar.bat gave this</p>
  <blockquote>
  <p>Unable to execute Java command.  Access is denied. (0x5) wrapper  |<br />
  &quot;C:\Program Files\Java\jdk-11.0.11\bin&quot; -Dsonar.wrapped=true ...</p>
  </blockquote>
  <p><code>C:\Program Files\Java\jdk-11.0.11\bin</code> is what I have in wrapper.conf and it did work.</p>
  <p>In a cmd window, <code>C:\windows\system32&gt;java -version</code></p>
  <blockquote>
  <p>java version &quot;11.0.11&quot; 2021-04-20 LTS Java(TM) SE Runtime Environment
  18.9 (build 11.0.11+9-LTS-194) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode)</p>
  </blockquote>
  <p>navigate to the path above do <code>java -version</code> reports the same.</p>
  <p>However I noticed my system Path has this, verified the one in <code>javapath</code> is the same version.</p>
  <pre><code>C:\Program Files\Common Files\Oracle\Java\javapath 
  C:\Program Files(x86)\Common Files\Oracle\Java\javapath
  </code></pre>
  <p><a href="https://i.stack.imgur.com/f89Z4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f89Z4.png" alt="enter image description here" /></a></p>
  <p>And java_home is empty: <code>echo %java_home%</code> got <code>%java_home%</code></p>
  <p>I'm totally confused now. What went wrong?</p>