title: Unable to set Java Path in system variables (Windows 10)
body: <p>I've tried adding JAVA_HOME with the directory - C:\Program Files\Java\jdk1.8.0_121 to my system variables, and then adding %JAVA_HOME%/bin to Path variable and this didn't work and I receive </p>
  
  <blockquote>
    <p>'java' is not recognized as an internal or external command, operable
    program or batch file.</p>
  </blockquote>
  
  <p>So I've tried adding C:\Program Files\Java\jdk1.8.0_121; directly to the path variable but I still get the above error. Does anyone have any suggestions please?</p>
  
  <p>Thanks</p>
  
  <p>PS - The image shows me in the command prompt at C:\Program Files\Java\jdk1.8.0_121 trying 'java -version' - I just moved up one dir to test the variable, entering 'java -version' in the bin directory returns the correct info, as you would expect.</p>
  
  <p><a href="https://i.stack.imgur.com/nONVL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nONVL.png" alt="Link to the image"></a></p>