i am looking for following eclipse-capability: select a projekt and show me all the libraries (jars), my sources are using indeed.
this way i want to clean up unused and therefore unneccessary library imports into the classpath. i think this must be somehow included in eclipse IDE, because it should not be to tricky to be realized (browse all my sources and analyze imports and compare with types in included libraries.
of course this would not be completely reliable because you always can hack this static typing with reflection. but at least it would be a help to find dead library imports.
Within an error-free Eclipse project, you can simply go to the builder page and remove JARs from the project one by one. Each missing jar with static usage will cause the java source file decorators to light up (the white "X" in the red circle), which will be an indicator that you should put it back.
Or you can remove all the jars and just keep adding back until all the errors go away. I've done this from time to time.
Once you've cleaned the list of jars from your project, you should be able to go into the physical library directories and delete the jar files.
I do recommend you archive the project before you do this, though!
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Dec 29, 2005
yes, know how to it manually but hoped that there was an automatic help of eclipse... something similar to unused import -> unused libraries.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com