views:

2390

answers:

2

Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?

+9  A: 

ClassPathHelper is a good start.

It automatically identifies orphan jars any much more.

The only limit are dependencies that are not defined in classes, e.g. in dependency injection framework configuration files.

You have also other options/complements, such as:

  • workingfrog which relies on the ability to deal with real objects by examining their shape, size or relative place in space it gives a "physical" view on java packages, types and fields and their relationships, making them easier to handle.
  • Unnecessary Code Detector: a eclipse PlugIn tool to find unnecessary (dead) public java code.
VonC
Thanks VonC, checking those out now.
RodeoClown
+3  A: 

You can use one of this plugins: UCDetector or Classpath Helper

Thanks for those - looking into them now.
RodeoClown