On Apr 17, 7:36 pm, "Dimiter \"malkia\" Stanev" <
mal...@gmail.com>
wrote:
> Is there any alternative (ClassLoader?) to store the .class files in a
> different compressed format?.NET can store lots of classes in one
> assembly? Is there something like that for JVM?
ClassLoaders can do almost anything, including load classes via HTTP,
so I expect it would be possible to write a custom ClassLoader that
uses a different compression format (like tar.gz). But it wouldn't
necessarily be easy. ZIP is convenient because it permits random
access to any file within the archive, which tar does not.
Here's an (old) article with a related example:
http://www.javaworld.com/javaworld/jw-04-2000/jw-0421-zipclass.html
-Stuart Sierra