• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tool for Java dependency analysis

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google is your friend:

http://depfind.sourceforge.net/

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic