Can the code attributte be a .jar ? Everything in the right directory?
Try something like this:
<applet code="HelloApplet.class" name="HelloApplet" archive="HelloApplet.jar"
width=300 height=300>
<param name="bgcolor" value="ffffff">
<param name="fontcolor" value="000000">
Your browser is not Java enabled.
</applet>
For more help, use this link