简单点是把class方到examples目录下面,调用class的路径以example为启始路径。

解决方案 »

  1.   

    试过了,不好用
    <html>
    <head><title>sample</title></head>
    <body> <applet code=sample archive=sample.class width=500 height=300>
    </applet>
    </body>
    </html>
    sample.class 放的位置是不是和什么配置文件有关?
      

  2.   

    <applet code=sample.class width=500 height=300> archive是JAR文件的名字,比如sample.jar
    还有一个codebase是路径。