Difference between browswer and appletviewer?

So i built an applet that imports a couple other classes and when i go to the command prompt and use 'appletviewer Applet.html' it works fine. But when I actually launch Applet.html it doesnt load the applet and says that the applet is notinited.

The java console says that there is some NoClassDefFoundError's and a ClassNotFoundException (and some nullpointer and security stuff but I think that is a result of this problem). The class that it is looking for is called Client$1 (I have a class called Client.class) but Client$1.class is in the folder but I didn't make it.

That stuff is important. Please copy and paste all of the java console error messages here.
The Client$1 is an anonymous class that can be generated by the compiler. Be sure to copy all the classes generated by the compiler to the folder where you are trying to load the HTML page with the applet tag.

The program is an online chat server. I'm running a file (clientapplet.class) that uses client.class and connects to server.class with sockets. Server.class runs continually in the background (it was running when I got this error message) and it distributes the message to all instances of the client applet.

The socket permission thing is accessing myself on a port that i randomly chose.