用java命令执行,没有main()方法呀,
要不然就嵌入到网页中执行。

解决方案 »

  1.   

    建一个文本文件,把下面的代码粘进去,把txt改为html
    <applet code="welcomeapplet.class" width=300 height=300>
    </applet>
      

  2.   

    applet要嵌入网页中才能看到!
    <html>
    <applet code ="welcomeapplet.class" width="200" height = "200"></applet>
    </html>
    写一个这样的html文件和你的类文件放在一个路径下面然后用打开这个网页就可以了!