How to slim down jar files?
I am working on a java application that uses classes form a 3rd party library. Currently I am including the entire library in the jar for distribution. While this solution works, it results in a rather large jar file.
My application uses only a small fraction of the classes in the library. I know which classes I reference directly from my code, but these classes in turn reference other classes in the library. Is there an easy way to find out which classes I need to include in my jar for distribution and which parts of the library I don't need to include?
In case this is relevant, I am using NetBeans IDE 5.0 for this project. Does it have the functionality to pack in only the required classes? If so, I was unable to find it.
Last Post: 05-29-2005, 01:23 AM
By Christer Nordvik in forum Java
Last Post: 10-17-2001, 08:11 AM
By John Maldonao in forum Java
Last Post: 04-10-2001, 06:19 PM
By Rocco Balsamo in forum Java
Last Post: 02-18-2001, 04:21 AM
Last Post: 12-28-2000, 08:02 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL