bin文件中还有不少其他命令不明白,哪里有说明?

解决方案 »

  1.   

    这个是applet亚,你得把它嵌入html啊
      

  2.   

    用appletviewer *.java就可以了
      

  3.   

    写错了,应该是appletviewer yourFileName,不带.java,呵呵
      

  4.   

    对,既然你是applet,那么要不放到网业里面执行,要不就用appletViewer 注意大小写!
    网业代码如下,保存为yourcode.html格式
    <APPLET
        CODE = “yourcode.class"
        HEIGHT = 200
         WIDTH=  200>
    </APPLET>
    运行:appletViewer yourcode.html 
     ok!
      

  5.   

    用记事本编写一个 html 文件如下:
    <html>
    <body>
    <p>
    <applet code=BubbleSort.class
     width=300
     height=200>
    </applet>
    </body>
    </html>
    编译完后,在DOS 下运行 appletViewer BubbleSort.html 即可。
    或者直接打开 BubbleSort.html 文件
      

  6.   

    用appletviewer已经可以执行,但是为什么我直接双击BubbleSort.html ,只显示一个灰框,里面没有内容
      

  7.   

    那是因为你的浏览器不支持Java,可以到java.sun.com下载插件