title: Error: Could not find or load main class Test in command prompt
body: <p>I used Edit plus to write the code:</p>
  
  <pre><code>import java.lang.System;
  import java.lang.String;
  class Test 
  {
      public static void main(String[] args) 
      {
          System.out.println("Hello World!");
      }
  }
  </code></pre>
  
  <p>After compiling it in command prompt with javac and executing with java commnds,
  I am getting "Error: Could not find or load main class Test".</p>
  
  <p>It was working fine in eclipse. </p>
  
  <p>I even created path and classpath. But didn't work.</p>
  
  <pre><code>C:\Users\sss&gt;cd C:\Users\sss\Desktop\Siri Study\java prog\ratanJprog
  
  C:\Users\sss\Desktop\Siri Study\java prog\ratanJprog&gt;javac Test.java
  
  C:\Users\sss\Desktop\Siri Study\java prog\ratanJprog&gt;java Test
  Error: Could not find or load main class Test
  </code></pre>
  
  <p>Please help me. Thanks in advance. </p>