title: Error: Could not find or load main class. Command Prompt
body: <p>I am trying my had at java programming and I made a HelloWorld program and if you need the code its right here:</p>
  
  <pre><code>public class Main {
       public static void main(String[] args){        
           System.out.println("helloworld");
       }
  }
  </code></pre>
  
  <p>It compiled without error and whenever I try to run it from the command prompt it says:</p>
  
  <blockquote>
    <p>"Error: Could not find or load main class".</p>
  </blockquote>
  
  <p>I don't know what I'm doing wrong. I have the jre 1.8.0_45 and jdk 1.7.0_71.</p>