title: Java 1.7.0_03 Error: Could not find or load main class
body: <p>I just upgraded to the latest Java</p>
  
  <pre><code>&gt; java -version
  java version "1.7.0_03"
  Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
  Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
  &gt; javac -version
  javac 1.7.0_03
  </code></pre>
  
  <p>I am having issues to execute Java program from the command-line. For instance:</p>
  
  <pre><code>public class Tester {
      public static void main(String[] args) {
          System.out.println("in main");
      }
  }
  </code></pre>
  
  <p>I compiled it on the command-line, then try to execute it:</p>
  
  <pre><code>&gt; javac Tester.java
  &gt; java Tester
  Error: Could not find or load main class Tester
  </code></pre>
  
  <p>Is this a bug?
  Strangely, I have no problem to execute the program using Eclipse.</p>