At 07:52 PM 11/27/2001 +1100, Jeff Turner wrote: >In the geotools project (http://geotools.sf.net), we're developing an >applet that currently requires over 1mb of external jars. I suspect that >a lot of classes are unused, and would like to cut down on the jar size >accordingly.
Take a look at Jax: http://www.alphaworks.ibm.com/tech/jax. It does much more than just pick the classes to include. It optionally will also: - remove unused or overridden methods that are never called - change all identifiers in the class file to be as short as possible, therefore obfuscating at the same time - inlining where appropriate The biggest problem with trying to automatically generate your classes comes from dynamically loaded classes. Are you sure that there is no reflection used, not even in supporting JARs? SWING uses it extensively, for example. Jax comes with an application that will retool your classes to spot where dynamic loading occurs. I haven't used it in a long time, mind you, and it doesn't appear to have much activity on its discussion forums now, but I really liked it when I was doing active applet development. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
