In my java console I have the following exception...


Exception in thread "thread applet-MyAppletForm.class-3" java.lang.NoClassDefFoundError: MyAppletForm$1
at MyAppletForm.init(MyAppletForm.java:47)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Here is my code ...

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/


/**
*
* @author User
*/
public class MyAppletForm extends javax.swing.JApplet {

/**
* Initializes the applet MyAppletForm
*/
@Override
public void init() {



/*
* Create and display the applet
*/
try {
java.awt.EventQueue.invokeAndWait(new Runnable() {

public void run() {
initComponents();
}
});
} catch (Exception ex) {
ex.printStackTrace();
}
}




private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:

jLabel1.setText("clicked");


}

// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
// End of variables declaration
}

---------------------------------------------------

I'm using Apache - XAMPP as my server

Would like to have help with the error message. I have the class file copied to my web folder in htdocs in xampp. Here is the HTML code for my simple website .....

<Html>
<Head>
<Title>Java Example</Title>
</Head>

<Body>
This is my page<br>
Below you see an applet<br>
<br>
<Applet Code=MyAppletForm.class width=800 Height=500>
</Applet>
</Body>
</Html>