title: Java command not found
body: <p>I'm trying to get the java command to work on my computer. Whenever I try to use it, I get the error "'java' is not recognized as an internal or..."</p>
  
  <p><strong>What I've done</strong><br>
  So far I've traced the issue through my system environment variables, which has a variable PATH that links to "C:\ProgramData\Oracle\Java\javapath" or javapath for short. </p>
  
  <p>There are 3 files in the javapath folder, and if you click on them a popup says: <img src="https://i.stack.imgur.com/B3YFz.png" alt="enter image description here"></p>
  
  <p>But when I examine the properties of the shortcut and click "open folder location" it sends me to the right place (?? what is this). </p>
  
  <p>Just in case, I tried to recreate the shortcut; I called it java2 and it now works (opens a command box for a split second and closes) when I click on it. However, testing it in command prompt with the line "java2 -version" returns "'java2' is not recognized as an internal or external..."</p>
  
  <p><strong>Details</strong><br>
  I just installed java 8, and I've verified that it was installed correctly</p>
  
  <p>I'm running a 64 bit windows 7 OS</p>