include many jars for a complex signed applet in html file?

hello

I'd like to know how it's possible to put a signed applet in an html file, that needs many jar files.

I explain myself: I know that to create a signed applet and to put it in an html file, I need to create a Jar file that contains this applet, create a private key with keytool, sign the jar and include it in my html file with the tag <applet code="....." archive="......jar".... />

This works fine if my applet is a simple program that only uses the clases present by default in the jdk.

In my case, I have a big project, with many packages. In one of these packages, I have my applet that uses some classes of the other packages, which use classes from imported jars, such as BouncyCastle, and others...

There is still no problem when I run the applet from the applet viewer.

The problem appears when I put the JAR file with all these classes in the html file: there is a problem since it doesn't know anything of these classes imported from these jars.. It's quite obvious actually.

My question is: how do I do to make the html file aware of these classes? Is there an html tag that allows us to include many jar files? Do I have to decompress all these jars, take all the directories, add them to the directories of my project and create a BIG jar (that's what I did, but it's really dirty, and heavy! (11M))?

Does anyone have an idea about how I can do it?

Thanks for your help

Philippe

[1481 byte] By [phsansa] at [2007-10-2 22:50:19]
# 1

11 MB is pretty big for an applet.

Let's say your applet uses java 3d, normally a client would download and

install this seporately, meaning the jars needed end up in lib/ext directory where

any applet can find them.

Check what applets need to be installed (put in lib/ext) and what can be

downloaded:

<object .....

><param name="archive" value="myJar.jar, myOtherjar.jar" />

harmmeijera at 2007-7-14 6:04:38 > top of Java-index,Security,Signed Applets...