Check out your applet tag in the web page you are referencing called "chat.html"
It should look something like this: <applet code="client.class" codebase="." width="400" height="400"></applet> where code base points to where the code class is located. If its in the same folder as the chat.html file, then use the "." which stands for the current directory.
If its in another folder, then create a path string which points to it.
eg: codebase="/applets"
codebase="/myappletdirectory"
Is the class being loaded from a jar archive? If so, t should look like this: <applet code="client.class" codebase="." arhive="chat.jar" width="400" height="400"></applet> If client.class is in a jar, then the jar file needs a manifest included with an entry for all the classes needed from the jar.