applet 程序运行不了

//<applet code=SmileFace.class height=100 width=130>
//</applet>
import java.awt.*;
import java.applet.Applet;
public class SmileFace extends Applet{
public void paint(Graphics g){
g.setColor(Color.Yellow);
g.fillOval(35,15,50,50);
g.setColor(Color.black);
g.fillOval(50,30,5,5);
g.fillOval(65,30,5,5);
g.drawArc(50,40,20,10,190,160);
}
}
就这个代码,我另存为SmileFace.html,用IE打开只显示代码没有图形,用猎豹打开提醒需要安装java,用appletviewer SmileFace.java调试,提示找不到类SmileFace.class。不知道该怎么办了,请高手解答。

appletviewer SmileFace.html

SmileFace.html
<HTML>
<HEAD>
<TITLE>TriangleApplet</TITLE>
</HEAD>
<BODY>
<h1>A Triangle</h1>
<hr>
<applet code="SmileFace.class" width=170 height=150>
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
Your browser is completely ignoring the <APPLET> tag!
</applet>
</BODY>
</HTML>追问

不太明白

追答

自己百度下,小应用程序怎么运行的

温馨提示:答案为网友推荐,仅供参考
相似回答