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

解决方案 »

  1.   

    <applet>..</applet>是如何写的
    贴上来,还有class文件存放的路径。
      

  2.   

    我也经常遇到象你这样的问题.用一下下面的方法,
    <html>
    <applet code="*.class" width=** height=**>
    </applet>
    </html>
    这个原代码保存为 html格式,要和你的 class文件存在一个目录下,
    试试吧
      

  3.   

    你所运行的html和*.class文件放在同一个文件夹中,用appletviewer编译试试
      

  4.   

    你的问题出错原因是:html找不到调用的Applet,可能是路径不对,检查一下先!