title: Java runs in cmd, but not from the PowerShell
body: <p>I just added the java folder to my Environment Variables. When I try to execute, for example, <code>javac HelloWorld.java</code> and <code>java HelloWorld</code> from the Windows command line (cmd), it executes normally. But if I open Windows Powershell and do the same, it says:</p>
  
  <pre><code>javac : The term 'javac' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
  he spelling of the name, or if a path was included, verify that the path is correct and try again.
  At line:1 char:1
  + javac HelloWorld.java
  + ~~~~~
      + CategoryInfo          : ObjectNotFound: (javac:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>Also, if I compile HelloWorld.java in cmd, it is possible to run <code>java HelloWorld</code> from the Powershell.</p>
  
  <p>How can I execute javac from the Powershell?</p>