title: 'java' is not recognized as an internal or external command, operable program or batch file in Windows 10
body: <p>I know this is a popular question on the web, but I'm getting this error even after setting <code>JAVA_HOME</code> env variable and adding <code>%JAVA_HOME%\bin\</code> to the Path variable.</p>
  <p>I'm trying to use <a href="http://pdfpresenter.sourceforge.net/#" rel="nofollow noreferrer">PDF Presenter</a> app which requires Java. So, I downloaded Oracle JDK (<a href="https://www.oracle.com/java/technologies/javase-jdk14-downloads.html#license-lightbox" rel="nofollow noreferrer">jdk-14.0.1_windows-x64_bin.exe</a>) and installed it and then configured the above two variables.</p>
  <p>If I enter <code>%JAVA_HOME%\bin\java.exe --version</code>, it works fine. But if I enter <code>java.exe</code> or <code>java</code>, I get the error in the title. How can I fix this?</p>
  <p>Here is the output of <code>echo %PATH%</code></p>
  <pre><code>C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;%JAVA_HOME%\bin\;C:\Users\Nagabhushan\AppData\Local\Microsoft\WindowsApps;
  </code></pre>