I'm trying some easy things with JSP and applets.
It's just some really easy applet

```java
package pack1;
import java.applet.Applet;
import java.awt.Graphics;

public class test2 extends Applet
{
   @Override public void paint( Graphics g )
   {
      g.drawString( "Hello!", 10, 10 );
   }
}

```

But I just can't get it working in the browser. In eclipse it's working fine but in my browser it says `NoClassDefFoundError`.
The important HTML part looks like:

```html
<applet code="pack1/test2.class"  width="200" height="200"></applet>

```

I really tried everything. I put the `test2.class` in every directory, and also tried many variations of the `<applet>` tag but it still won't work.

What should I do?

Picture of the folders:
![Picture of the folders](https://i.stack.imgur.com/MePoX.png)