applet的class文件要和html文件放在同一目录下,网页文件是无法访问web-inf下的内容的~~~

解决方案 »

  1.   

    我的class文件是和html文件放在同一目录下的啊
      

  2.   

    你不是双击html文件也可以显示applet也可以显示吗
    那还有可能就是jre版本的问题
      

  3.   

    显示class not found应该是路径问题吧。。但是怎么改呢?
      

  4.   

    index.html<html>
    <center>
    <table width="200" border="0" cellspacing="0" cellpadding="0" height="50">
      <tr>
        <td height="25">
    <applet code="MailCheckApplet.class" width="200" height="150">
    </applet></td>
    </tr>
    </table>
    </center>
    </html>
    MailCheckApplet.javaimport java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;public class MailCheckApplet extends Applet{ Label l1;   public void init() {
        try {
          l1=new Label("您好");
          add(l1);
        }
        catch(Exception e) {
          e.printStackTrace();
        }
      }
    }
      

  5.   

    <applet code="MailCheckApplet" width="200" height="150">
      

  6.   

    改成<applet code="MailCheckApplet" width="200" height="150">
    也不行啊。
    开始怀疑是不是tomcat的配置问题???
      

  7.   

    我郁闷啊
    前面一直用的腾讯的浏览器Tencent Explorer
    改成Internet Explorer后就ok了,,,,ft啊~~环境是:eclipse3.0 + tomcat4.1.3 + j2re1.4.2_05有没有哪位高手碰到过这样的情况???