Jar文件可以幫助Applet引用其它可用類庫,具體Applet標簽的用法如下:
<applet code=Animator.class
archive="jars/mmcnet .jar"
width=460 height=160>
<param name=foo value="bar">
</applet>
其中archive ="jars/mmcnet.jar"即為引用的外部類庫。如果需要引入多個類庫,使用","分割文件名如archive="classes.jar , images.jar , sounds.jar"
文章來源:http://sayyy.bokee.com/3644840.html