Comment 2 for bug 1013622

Revision history for this message
Ralf Claussnitzer (ralf-claussnitzer-deactivatedaccount) wrote :

There is no standard way of loading classes out of nested JAR files. Java JAR mechanism is just not designed for this use case. Custom Class Loaders can help, but a JAR source has to provide random file access, which is only provided by file system streams and memory buffering. Given this there are three options:

1. extract nested JAR files into temporary files (what most standalone-JAR tools do)
2. read nested JAR files to memory using a BufferedStreamReader (hit on performance and memory consumption)
3. extract all includes JAR files and avoid the problem (has license issues)