没有main方法:
public static void main(String[] args)
{
...
}

解决方案 »

  1.   

    Applet 并不需要main方法的,只不过它得在浏览器中或appletviewer中运行。
      

  2.   

    缺少main函数是不能 运行 的
    public static void main(){}
      

  3.   

    没有main方法啊~
    赶快加上吧!~
    public static void main(String[] args){......}
      

  4.   

    我是按照书上的程序抄下来的呀。书上的程序也没有main函数的呀
      

  5.   

    你编个脚本运行不就行了随便命名classjava.html
    <applet code=WelcomeApplet.class width=100 height=500>
    </applet>
    然后用
    appletviewer classjava.html运行
    或者直接双击classjava.html
      

  6.   

    谢谢classjava(原始野人)。你的答案是对的。现在已经能运行了。结帖!!