如何用命令方式运行java Applet

来源:百度知道 编辑:UC知道 时间:2024/05/21 23:37:24

比如你文件叫hello.java
编译为hello.class
写一个html叫hello.html
内容为
<html>
<applet>code="hello.class"
width=200
height=100
</applet>
</html>

然后在命令行方式进入上述文件所在文件夹
打命令appletviewer hello.html