java.lang.NoClassDefFoundError

I just wrote a JApplet which works pefectly when put in a JFrame, but not on my website.

I get the error:

java.lang.NoClassDefFoundError: gui/Login$1

at gui.Login.<init>(Login.java:16)

at gui.MainScreen.init(MainScreen.java:19)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

This occurs at the first line of the following code:

addMouseListener(new MouseAdapter(){// LINE 16

publicvoid mousePressed(MouseEvent e){

background =new Color(rand.nextInt(255),rand.nextInt(255),rand.nextInt(255));

repaint();

}

});

The above code occurs in the constructor of my Login class.

[974 byte] By [Nethera] at [2007-11-26 13:18:50]
# 1
This message java.lang.NoClassDefFoundError: gui/Login$1says it can't find a class gui.Login$1. Did you forget to copy it to your website?
ChuckBinga at 2007-7-7 17:44:42 > top of Java-index,Desktop,Core GUI APIs...
# 2
thanks lol that was the problem
Nethera at 2007-7-7 17:44:42 > top of Java-index,Desktop,Core GUI APIs...