Hi, I am preparing an applet that will be placed in a jar
file. The problem is that the applet uses other jar files.
What is the best way to organize all the files for
downloading, and how should I write the <applet ...>
tags to handle this situation?
Specifically, if my class MyClass.class is placed in
MyJar.jar, and if MyClass uses JarFile1.jar and JarFile2.jar,
would the <applet> tag look like this:
<applet code="MyClass.class"
archive="MyJar.jar JarFile1.jar JarFile2.jar"
width=120 height=120>
</applet>
Andrew Thompson - 30 Sep 2005 02:44 GMT
> <applet code="MyClass.class"
> archive="MyJar.jar JarFile1.jar JarFile2.jar"
archive="MyJar.jar,JarFile1.jar,JarFile2.jar"
> width=120 height=120>
> </applet>
HTH
Roedy Green - 30 Sep 2005 04:32 GMT
>Hi, I am preparing an applet that will be placed in a jar
>file. The problem is that the applet uses other jar files.
>What is the best way to organize all the files for
>downloading, and how should I write the <applet ...>
>tags to handle this situation?
Put the other jars is the Class-Path manifest of the master jar and
build an index to the other jars so that loader won't have to download
a jar unless in really needs it. See http://mindprod.com/jar.exe.html
Alternatively, you must mention the jars in the archive tag. See
http://mindprod.com/jgloss/applet.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.