A project was using various libraries. E.g. a.jar, b.jar,c.jar,d.jar etc
Some of the jars have been refactored and now is ab.jar and cd.jar etc.
What I need is an automatic way to find which jars in my installation are now obsolete and I can delete them.
Is this possible?
A project was using various libraries. E.g. a.jar , b.jar , c.jar , d.jar
Share
So with LooseJar you can detect unused Jar files by adding:
to your java command when you invoke form the command line (or as a VM option in Eclipse). I guess this isn’t technically automatic because lines of code that dynamically load classes at runtime will need to be invoked in order for LooseJar to know that the class and therefor the jar is needed. A good method might be to invoke your unit tests with this java agent (assuming your unit tests have good code coverage)