title: Error: Could not find or load main class. Powershell/Java
body: <p>I just started Java. I was initially using NetBeans to code and it works. But my teacher is insisting that we use a text editor and run it through Powershell. I'm getting a "Could not find or load main class" error with this code.</p>
  
  <pre><code>public class a10{
      public static void main(String[] args){
          System.out.println("Hello World");
      }
  }
  </code></pre>
  
  <p>When I run it on Netbeans, there are no errors, but I'm unable to run it on Powershell. Can someone tell me what's wrong and how I would fix it</p>