title: I can not run Java on Visual Studio Code! I tried a lot
body: <p>My problem is that I can not run Java on Visual Studio Code. I downloaded all extension and JDK but there is an issue and error when I run the code..</p>
  <p>I took a screenshot for my problem.</p>
  <p><em><strong>here is the code:</strong></em></p>
  <pre><code>public class Hello {
  
      public static void main(String[] args) {
          System.out.println(&quot;hi&quot;);
      }
  }
  </code></pre>
  <p><em><strong>here is the error in the terminal:</strong></em></p>
  <pre><code>Copyright (C) Microsoft Corporation. All rights reserved.
  
  
  Try the new cross-platform PowerShell https://aka.ms/pscore6
  
  PS C:\Users\Ahmed\Desktop\LearnJava&gt;  &amp; 'c:\Users\me\.vscode\extensions\vscjava.vscode-java-debug-0.26.0\scripts\launcher.bat' 'C:\Program Files\Java\jdk-13.0.2\bin\java.exe' '-Dfile.encoding=UTF-8' '-cp' 'C:\Users\me\AppData\Roaming\Code\User\workspaceStorage\869d91d9e4b3718bf03724a877036fed\redhat.java\jdt_ws\LearnJava_9276adca\bin' 'Hello'
  ahl
  PS C:\Users\me\Desktop\LearnJava&gt;
  </code></pre>
  <p><em><strong>here is the error in the output:</strong></em></p>
  <pre><code>Running] cd &quot;c:\Users\me\Desktop\LearnJava\&quot; &amp;&amp; javac Hello.java &amp;&amp; java Hello
  
  [Done] exited with code=0 in 4.348 seconds
  
  [Running] cd &quot;c:\Users\me\Desktop\LearnJava\&quot; &amp;&amp; javac Hello.java &amp;&amp; java Hello
  ahl
  
  [Done] exited with code=0 in 1.152 seconds
  
  [Running] cd &quot;c:\Users\me\Desktop\LearnJava\&quot; &amp;&amp; javac Hello.java &amp;&amp; java Hello
  ahl
  
  [Done] exited with code=0 in 1.236 seconds
  
  [Running] cd &quot;c:\Users\me\Desktop\LearnJava\&quot; &amp;&amp; javac Hello.java &amp;&amp; java Hello
  ahl
  
  [Done] exited with code=0 in 1.157 seconds
  </code></pre>