LinuxCommandLibrary

jdeps

Java class dependency analyzer.

TLDR

Analyze the dependencies of a .jar or .class file

$ jdeps [path/to/filename.class]
copy


Print a summary of all dependencies of a specific .jar file
$ jdeps [path/to/filename.jar] -summary
copy


Print all class-level dependencies of a .jar file
$ jdeps [path/to/filename.jar] -verbose
copy


Output the results of the analysis in a DOT file into a specific directory
$ jdeps [path/to/filename.jar] -dotoutput [path/to/directory]
copy


Display help
$ jdeps --help
copy

Copied to clipboard