倒,Applet怎么能用java Example1_2来运行???Applet应当包含在网页里面或用AppletViewer 网页来运行的;)
2、HelloWorld.java
//Name:HelloWorld.java
//Memo:经典程序HellWorldimport java.awt.Graphics;
import java.applet.*;public class HelloWorld extends java.applet.Applet
{
    public void init()
    {
        resize(150,50);
    }    public void paint(Graphics g)
    {
        g.drawString("Hello Java World !!!",150,50);
    }
}3、HelloWorld.html
<html><head>
<title>Java Applet......HelloWorld</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="pragma" content="no-cache">
</head><body bgcolor="#FFFFFF">
<center>
<applet code="HelloWorld.class" width="500" height="400">
</applet>
</center>
</body>
</html>还有就是编译时
javac -target 1.1 **.java