首先,确定你的applet(*.java)文件已经被编译为*.class文件;然后编写一个*.html文件,类似下面:
< html>
< body>
< applet code="..\..\myclass\MyJavaApplet.class" height=200 width=300>
< /applet>
< /body>
< /html>
如果你的html文件和 class文件在同一个目录下,则不用有路径名直接写"MyJavaApplet.class"即可,我的例子是class文件保存在html文件目录的上两级目录的myclass目录下。