java applet 中本来就没main函数的啊,是ini的啊。

解决方案 »

  1.   

    建议楼主先看一些基础书籍后再进行编码及编译的练习
    applet是需要用appletviewer观看的
    或是支持applet的浏览器
      

  2.   

    不能直接运行
    用appletviewer命令可以运行
    也可以多写个简单的html文件来浏览
    如:
    <html>
    <applet code="CLASS文件名" height="文件高度" width=文件宽度>
    </applet>
    </html>
      

  3.   

    http://expert.csdn.net/Expert/TopicView1.asp?id=2940187
      

  4.   

    这个问题我也遇到了,是JCREATOR自动生成的 HTML文件代码的问题
    如:
    <html>
    <applet code="Hello.class" height="文件高度" width=文件宽度>
    </applet>
    </html>
    问题就在于 类文件名的首字母上,JCREATOR自动生成的 HTML文件代码默认的是首字母是
    大写的,如hello.class,就写成了 Hello.class
    所以就错了,自己改过来,然后再用浏览器打开,一切ok