<applet code="HelloWorld.class" width=150 height=25></applet>
改成:<applet code="HelloWorld.class" width=150 height=50></applet>

解决方案 »

  1.   

    楼上的这样改肯定还是不行,错误提示的是找不到class类,检查html文件和生成的class文件是不是在同一个文件夹中,如果不是最好改成:
    <applet code="HelloWorld.class" codebase="此处是存放class文件的相对路径" width=150 height=50></applet>
    例如,我的html文件是放在d:\html中,而我生成的class文件却在d:\html\classes中,那么我需要如此改:
    :<applet code="HelloWorld.class" codebase="./classes" width=150 height=50></applet>
      

  2.   

    你的classpath设置里包含了 
    .;
    这部分吗?
      

  3.   

    象import javax.swing.*;这一句根本没用,可以去掉
      

  4.   

    sorry,没看清你的题目,如果.class和.html是放在同一个目录下面的,那么很遗憾,估计是你ie有问题的jvm,因为我在我的机器上面把你的程序试了一下,完全正确,没有任何问题!
      

  5.   

    这个好像和classpath没有什么关系吧,编译都通过了!
      

  6.   

    如果还不行,再试试HTML改为:
    <html>
    <head><title>一个简单的程序</title></head>
    <body>
    <applet code="HelloWorld.class" codebase="."
     width=150 height=25></applet>
    </body>
    </html>其中的codebase="."也可以换为codebase=".\"或者codebase=""
      

  7.   

    其中的codebase="."也可以换为codebase=".\"或者codebase=""
    ____________________________~~~~~~~~~~~~~这个好像是改成codebase="./"吧!
      

  8.   

    引用       <applet code="HelloWorld.class" width=150 height=25></applet>
    我都是写成 <applet code=Hell0World.class width =150 height=25 ></applet>
    你去掉引号试试看,应该没有问题
      

  9.   

    我编译过不是程序问题!
    是浏览器的问题,没有JVM!
    你再试一下: javac HelloWorld.java
                 appletviewer HelloWorld.html
              
      

  10.   

    楼上的全错了,用HtmlConverter转换html
    我已回楼主的信了
      

  11.   

    我用我的ie看过网上的有java applet的页面是好的啊!能看到效果。就是我自己的java applet程序在ie里面看不了。