build jar file that includes needed classes automatically
posted 8 years ago
A few years ago I could have sworn that I read about a jar creation tool that would automatically discover what class files would be needed for a application and build a jar file with just those class files. I believe that you provided it with the name of the class or classes that had entry points (main methods) and it would see what they depended on usiing static analysis. It would look at both things that were compiled as dependencies and things that might be dependencies because of strings that looked like class names to load via reflection.
Such a tool would be really useful to me now, but I can't seem to find it on Google right now. Is anybody familiar with it?