Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java import/export dependencies

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.

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?

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

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

like image 675
horace Avatar asked Aug 26 '08 16:08

horace


1 Answers

You could use the Outbound dependencies feature of DependencyFinder. You can do that entirely in the GUI, or in command line exporting XML.

like image 189
Damien B Avatar answered Oct 19 '22 01:10

Damien B