> A bit off topic. But I am curious. How does one make a Jar of 
> Jars work?? I
> tried doing this -- building a Jar of all of the third party 
> Jars I use and
> putting this on the Classpath, and the embedded Jars were not 
> unpacked. What
> am I doing wrong?? Do I need to use a specialized ClassLoader??

You would need a specialised ClassLoader, and it would be quite nasty. ClassLoaders 
are meant to be able to find resources quickly, but then only need to provide "serial" 
access to them (ie a stream). This is easy for a single resource within a jar (as you 
can skip to the right bit easily enough), but not for a jar within a jar, which would 
basically need to read/decompress everything within the inner jar as it went along to 
find a particular resource.

That's not a terribly good explanation, but the bottom line is that it's unpleasant. 
It's nicer just to put a Class-Path entry in your manifest and stick the 3rd party 
jars in the same directory.

Jon

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to