请问,如何运行Applet程序?
一个简单的小程序:import java.applet.Applet;
import java.awt.Graphics;
public class out extends Applet
{
public void paint(Graphics g)
{
g.drawString("out",10,10);
}
}
如何运行?我编辑以后,生成一个.class的文件,但是不能运行,运行出现Exception in thread "main" java.lang.NoSuchMethodError: main
用以下命令:AppletViewer out.html也不行,运行出现Warning: Can't read AppletViewer properties file: C:\Documents and Settings\sdw\
.hotjava\properties Using defaults.
I/O exception while reading: D:\save\inout.htm (The system cannot find the file
specified)
谁能告诉我是什么原因?谢谢了。
[此贴子已经被作者于2005-4-5 15:34:49编辑过]