My class's code:

```
package overviewPack;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class ButtonScreen extends JApplet implements ActionListener{

    JButton middle = new JButton();
    Container screen = getContentPane();
    public void init(){

        setVisible(true);
        middle.addActionListener(this);
        screen.add(middle);
    }

    public void actionPerformed(ActionEvent event) {
        if (event.getSource() == middle){
            System.out.println("hey");
        }

    }
}

```

When I attempt to run it using html, I recieve a noclassdefFound error, with the stacktrace as ButtonScreen(Wrong name: overviewPack ButtonScreen)

Here is my html code: (I use brackets so that the code will turn up in chat as the code and not the finished product).

```html
<HEAD>
<TITLE>
A Simple Program </TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE="overviewPack.ButtonScreen.class" codebase = "bin" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>
</HTML>

```

I have tried many different formats for the html, and looked at many other people's similar, sometimes exactly the same errors, but none of the solutions proposed to other people have worked. I have also looked around on the rest of the net for a solution, but I have found none.

This error happens with all my applets, even this extremely simple applet I did above.

The html file is in the same folder as the class