<p>I'm trying to find a way to list the (static) dependency requirements of a jar file, in terms of which symbols are required at run time.</p>

<p>I can see that the methods exported by classes can be listed using "javap", but there doesn't seem to be an opposite facility to list the 'imports'. Is it possible to do this?</p>

<p>This would be similar to the dumpbin utility in Windows development which can be used to list the exports and imports of a DLL.</p>

<p>EDIT : Thanks for the responses; I checked out all of the suggestions; accepted DependencyFinder as it most closely meets what I was looking for.</p>

[{'answer_id': 28552, 'author': 'Dave', 'author_id': 3095, 'author_profile': 'https://Stackoverflow.com/users/3095', 'pm_score': 2, 'selected': False, 'text': '<p>I think you can get that information using <a href="http://www.clarkware.com/software/JDepend.html" rel="nofollow noreferrer">JDepend</a></p>\n'}, {'answer_id': 28594, 'author': 'Damien B', 'author_id': 3069, 'author_profile': 'https://Stackoverflow.com/users/3069', 'pm_score': 3, 'selected': True, 'text': '<p>You could use the <a href="http://depfind.sourceforge.net/Manual.html#ShowingOnlyOutboundDependencies" rel="nofollow noreferrer">Outbound dependencies</a> feature of <a href="http://depfind.sourceforge.net/" rel="nofollow noreferrer">DependencyFinder</a>. You can do that entirely in the GUI, or in command line exporting XML.</p>\n'}, {'answer_id': 28611, 'author': 'MattGrommes', 'author_id': 3098, 'author_profile': 'https://Stackoverflow.com/users/3098', 'pm_score': 0, 'selected': False, 'text': '<p>There\'s a tool called <a href="http://www.kirkk.com/main/Main/JarAnalyzer" rel="nofollow noreferrer">JarAnalyzer</a> that will give you the dependencies between the jars in a directory. It\'ll also give you a list of dependencies that don\'t exist in the directory.</p>\n'}, {'answer_id': 29203, 'author': 'SCdF', 'author_id': 1666, 'author_profile': 'https://Stackoverflow.com/users/1666', 'pm_score': 0, 'selected': False, 'text': '<p>If it\'s a public jar (as in, not yours) then it might be in the <a href="http://mvnrepository.com/" rel="nofollow noreferrer">Maven Repository</a>.</p>\n'}]
['https://Stackoverflow.com/questions/28538', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2887/']