<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<title>
HTML Test Page
</title>
</head>
<body>
Applet1 will appear below in a Java enabled browser.<br>
<applet
  codebase = "."
  code     = "AppletZip.class"
  archive  = "class.jar"
  name     = "TestApplet"
  width    = "400"
  height   = "300"
  hspace   = "0"
  vspace   = "0"
  align    = "middle"
>
</applet>
</body>
</html>

解决方案 »

  1.   

    这个是必须将html和class.jar放在一格目录下。
    如果放在服务器上
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
    <title>
    HTML Test Page
    </title>
    </head>
    <body>
    Applet1 will appear below in a Java enabled browser.<br>
    <applet
      codebase = "http://Ed/7/"
      code     = "AppletZip.class"
      archive  = "class.jar"
      name     = "TestApplet"
      width    = "400"
      height   = "300"
      hspace   = "0"
      vspace   = "0"
      align    = "middle"
    >
    </applet>
    </body>
    </html>
    表示这个class.jar在服务器下的7/下
      

  2.   

    注意你使用的JDK的版本,要是太高可能普通IE浏览器无法显示
      

  3.   

    谢谢dreamno(C_S_D_N),但我的问题还是没有解决我的applet源文件是MouseAppletClick.java,编译后得到MouseAppletClick.class 和MouseAppletClick$1.class,我把这两个class文件用jar打包成my.jar,
    在html文件里
    <html>
    <body>
    <APPLET CODE="MouseClickApplet.class" ARCHIVE="MY.JAR" WIDTH=300 HEIGHT=150>
    </APPLET>
    </body>
    </html>所有这些文件都在同一个目录下,但在浏览器里还是没有显示,请问这是到底为什么?
      

  4.   

    我的系统是windows2003 ,我把我的程序放到别人的windows2000上运行正常,且显示速度很快,为什么在2003上不行呢?