你的编译后的类文件可能没有上传
用getAppletContext().getApplet(appletName);
appletName可以在html中指定
<APPLET CODEBASE=example/ CODE=Sender.class
    WIDTH=450
    HEIGHT=200
    NAME="appletName">
. . .
</applet>