Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?
Select Project in Project Explorer and Press "Alt+Enter" then Go to Java Build path and select Libraries then select jar file finally click on Remove button. select jar in the Project tree-view and right click on it and select Build Path then in select the Remove from Build Path . You are done.
The Jar File wizard can be used to export the content of a project into a jar file. To bring up the Jar File wizard − In the Package Explorer select the items that you want to export. If you want to export all the classes and resources in the project just select the project.
ClassPathHelper is a good start.
It automatically identifies orphan jars and much more.
The only limitation is with dependencies that are not defined in classes, e.g. in dependency injection framework configuration files.
You also have other options/complements, such as:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With