This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Tool for Java dependency analysis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tool for Java dependency analysis" Watch "Tool for Java dependency analysis" New topic

Tool for Java dependency analysis

Ingudam Manoranjan
Ranch Hand

Joined: Jul 31, 2006
Posts: 48
Has anyone come across any tool that given a class, it can give the call graph, both ways - referencing classes & dependent java classes?

I wanted to analyze codebase. Basically if I can get the list in a report the call graph of a java class, that will be the starting point for my analysis.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17026

Google is your friend:

As they point out, a lot of times it's easier to simply hyperlink through the chain in an IDE however. Function call graphs have not been very useful to me in object-oriented systems - I pretty much gave them up when I stopped using C.

I think I used depfind to weed out unused JARs, but that was about 2 years ago.

Also, no static analysis tool can 100% guarantee to find everything. Classloaders can load classes dynamically. A common example is JDBC driver loading.

Customer surveys are for companies who didn't pay proper attention to begin with.
Have you checked out Aspose?
subject: Tool for Java dependency analysis
It's not a secret anymore!