title: Error: java.lang.NoClassDefFoundError: Chase (wrong name: pong/Chase)
body: <p>I have created an applet program using Eclipse IDE. Now im creating .html file as below:</p>
  
  <pre><code>&lt;html&gt;
  &lt;APPLET CODE="Chase.class" width=500 height=400&gt;
  &lt;/APPLET&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When Im executing this file the error im getting is:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: Chase (wrong name: pong/Chase)
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(Unknown Source)
  at java.security.SecureClassLoader.defineClass(Unknown Source)
  at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
  at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
  at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>In Eclipse IDE is have created new project and packaged the program into "pong" folder.</p>
  
  <p>Can anybody explain why this error is occuring?</p>
  
  <p>Edit:</p>
  
  <p>Adding few Chase.java code lines, for clarification. It is simple applet:</p>
  
  <pre><code>package pong;
  
  
  import java.applet.*;
  import java.awt.*;
  import java.awt.event.*;
  import java.util.Random;
  
  
  
  public class Chase extends Applet implements Runnable
  { ...  }
  </code></pre>