Reputation:
I am distributing a Java application as a JAR but it depends on a few extra Apache libraries. All told the libraries increase the size of the JAR sixfold. I don't need the entire library and I want to remove anything that is not needed by my code.
Is there a way to identify the classes that are needed? I could go through the source for all the classes I called and check their dependencies but that is just a pain considering the libraries are from 6 separate JARs.
Upvotes: 2
Views: 45