将applet加到html语句里面啊 
比如你class文件是test.class
<Applet code = "test.class"
height = 300 width = 400>
</applet>
你执行这个html文件就可以了

解决方案 »

  1.   

    假设我有个编译好的b.class
    怎么用appletviewer打开啊?
      

  2.   

    用Eclipse 
    打开你的applet的源文件run下面选 run as applet就ok了也不用写什么html了
      

  3.   

    只用jdk,别的都不用
    可以打开applet吗
      

  4.   

    把以下代码
    // <applet code=MyApplet width=200 height=100></applet>
    加到你applet源码的前面,
    然后在命令行输入:
    appletviewer YourApplet.java
    就行了~~
      

  5.   

    // <Applet code = "test.class" height = 300 width = 400></applet>
    加在.java文件中就可以用
    appletviewer xx.java来显示了
      

  6.   

    非常感谢irvine007(┣━┫Rvine)和wwlwxx(海砂)
    现在可以了