Given a webstart application composed of multiple jars, how could I list the files contained in these jars? (at runtime)

Thanks in advance,

Arnaud

**EDIT:**

The problem, with the method mentionned below (which is very similar to what I used until now), is that somehow the classpath changes when invoking webstart. Indeed, it doesn't reference your jars anymore but a `deploy.jar` instead.

As a consequence, if you run `java -cp myjars test.ListMyEntries` it will correctly print the content of your jars. On the other hand, via webstart, you will obtain the content of `deploy.jar` because this is how the classpath is defined when webstarted. I did not found any trace of the original jar names in any of the system/deployment properties.

Output sample:

```
Entries of jar file /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/deploy.jar
META-INF/
META-INF/MANIFEST.MF
com/sun/deploy/
com/sun/deploy/ClientContainer.class
com/sun/deploy/util/
com/sun/deploy/util/Trace$TraceMsgQueueChecker.class

```