javac *.java是编译这个目录下的所有java文件,你的程序应该是不能起名叫*的。
所以应该在你编译的所有class文件中找到你要的,并把完整的名称写上去!

解决方案 »

  1.   

    用这个html文件替换你的
    <html><head><title>Applet1</title></head><hr>
    <OBJECT 
      classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      width="100" height="50" align="baseline"  codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
    <PARAM NAME="code" VALUE="=*.class">
    <PARAM NAME="codebase" VALUE=".">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
    <COMMENT>
      <EMBED type=
        "application/x-java-applet;version=1.2.2" 
        width="100" height="100" align="baseline"
        code="=*.class" codebase="."
    pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">
      <NOEMBED>
    </COMMENT>
       No Java 2 support for APPLET!!
      </NOEMBED>
    </EMBED>
    </OBJECT>
    <hr></body></html>
      

  2.   

    更正:
    <html><head><title>Applet1</title></head><hr>
    <OBJECT 
      classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      width="100" height="50" align="baseline"  codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
    <PARAM NAME="code" VALUE="*.class">
    <PARAM NAME="codebase" VALUE=".">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
    <COMMENT>
      <EMBED type=
        "application/x-java-applet;version=1.2.2" 
        width="100" height="100" align="baseline"
        code="*.class" codebase="."
    pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">
      <NOEMBED>
    </COMMENT>
       No Java 2 support for APPLET!!
      </NOEMBED>
    </EMBED>
    </OBJECT>
    <hr></body></html>