如何用命令方式运行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
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑: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