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(
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR Source)
at 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
public void init() {

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

public void run() {
} catch (Exception ex) {

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



// 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 .....

<Title>Java Example</Title>

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