title: Eclipse can't find / load main class
body: <p>My Eclipse (Indigo) was running just fine.  I created a simple class <code>Hello</code>.  It is placed in package <code>cont</code> in the folder <code>ch13</code>.  However, when I try to run it from Eclipse I get info from Java Virtual Machine Launcher: </p>
  
  <pre><code>Could not find the main class: cont.Hello.  
  </code></pre>
  
  <p>I tried to run other classes from this package and they run just fine (that is the classes that existed there before).  However any new class I create in this package has these problems.  Actually any new class I create in Eclipse runs into this problems.  I decided to check how it works from the command line.  It seems that the problem still exist - I get same error.  I checked the path and it is <code>C:\Program Files\Java\jdk1.7.0_02\bin</code>, which is correct (note the other classes are running from Eclipse just fine).  I tried to run with <code>java -cp . Hello</code> and there are some Errors produced starting with <code>java.lang.NoClassDefFoundError: Hello (wrong name: cont/Hello)</code>.  Code itself is simple:</p>
  
  <pre><code>package cont;
  
  public class Hello {
      public static void main(String[] args){
          System.out.println("Hello");
      }
  
  }
  </code></pre>
  
  <p>How can I fix it so that my classes still run under Eclipse?</p>