title: How to generate a call graph for a java project
body: <p>Is it possible to generate a global call graph of an application?</p>
  
  <p>Basically I am trying to find the most important class of an application.</p>
  
  <p>I am looking for options for Java.</p>
  
  <p>I have tried Doxy Gen, but it only generates inheritance graphs.</p>
  
  <p>My current script:</p>
  
  <pre><code>#! /bin/bash
  
  echo "digraph G
  {"
  find $1 -name \*.class |
      sed s/\\.class$// |
      while read x
      do
          javap -v $x | grep " = class" | sed "s%.*// *%\"$x\" -&gt; %" | sed "s/$1\///" | sed "s/-&gt; \(.*\)$/-&gt; \"\1\"/"
      done
  echo "}"
  </code></pre>