> I am lookging for a freeware/open source tool for analysing static
> dependencies in java. I want to solve especially these problems:
>
> - find unused/uncalled methods in classes
Our Java Source browser finds all dependencies in source code
and inserts that information into JavaDoc. If you have
a method that isn't called, its JavaDoc entry
will show the definition but no uses.
See http://www.semdesigns.com/Products/Formatters/JavaBrowser.html.
Free for modest-sized Java apps.
> - find unused classes in a jar
... ours only works on source files.
> I am aware that this can only work if the code does not use reflection, but
> that is ok for me.
Yep.
> Such a tool should not be too difficult to write.
Right :-{ You *only* need a full Java parser with name
and type resolution. Probably easier if you work
on the Java class code.
> But if it is so simple, then I guess another one already has done the work,
> so is there such a tool?
We also have a version that will identify and optionally remove the dead
code
from the source files. Not free.

Signature
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com