是不是applet??
不知道你的“java for web”具体是指什么意思

解决方案 »

  1.   

    test.class=>内容输出"hello world!!"
    test.html
         1  <HTML>
         2  <HEAD>
         3  <TITLE> An Applet </TITLE>
         4  </HEAD>
         5
         6  <BODY>
         7  <!-- <Applet code="test.class" width=200 height=40>
         8  </applet>-->
         9  <Applet code="test.class"></applet>
        10  </BODY>
        11  </HTML>
    输出结果为一块阴影,服务器为solaris web服务器apache
      

  2.   

    两种可能,一是applet有问题(包括jvm因版本而不支持);二是类文件位置不对。
      

  3.   

    同意楼上兄弟的看法。
    1。检查一下applet脚本
    2。加上CLASS文件的PATH试试
    。<!-- <Applet code="//PATH/test.class" width=200 height=40>
        
      

  4.   

    路径我也加上了还是出现那个问题,我用的是相对路径可以吧
    <Applet code="./test.class" width=200 height=40>
      

  5.   

    路径我也加上了还是出现那个问题,我用的是相对路径可以吧
    <Applet code="./test.class" width=200 height=40>