title: how to know which class / package/ methods used by given jar file?
body: <p>I have a jar file. I want to know which external classes and methods are used by classes inside JAR file. Can anyone suggest me any tool?</p>
  
  <p>For example - if below two classes are packaged into <em>Myjar.jar</em></p>
  
  <pre><code>import java.util.Vector;
  class MyJarClass{
  
      public static void main(String args[]){
          Vector v = new Vector();
          AnotherClass another = new AnotherClass();
  
          v.addElement("one");
          another.doSomething();
  
      }
  }
  
  class AnotherClass{
  
      void doSomething(){
      }
  }
  </code></pre>
  
  <p>When I supply that JAR to a tool - the tool should show <code>java.util.Vector</code> and <code>Vector.adElements()</code> are from external source (not present in <em>MyJar.jar</em>)</p>
  
  <p>Forgot to mention, i don't have access to sourcecode.</p>