<applet code="game.class" archive="chess.jar" width="500px" height="500px">
</applet>
My code works fine in appletviewer, but doesn't work in browser. I packaged my class file in "game.jar" file and both html and jar file are in the same directory. It's a simple applet with only one drawstring
method. I even tried signing my jar file, assuming that might be the problem. Also further I want to work with images and sound, so I can't skip packaging it to jar.