While exploring new technical stuff, I came across wonderful JDK 8 command line tool. This is called jdeps (Java class dependency analyzer). It is useful for quickly identifying static dependencies of libraries. The
jdeps
command-line tool is easy to use and quickly identifies static dependencies on a provided JAR and its package or class contents.The level of detail shown is configurable and some ways of configuring this command's output are shown next.The following screen snapshot (cropped image, doesn't include full output) demonstrates basic usage of the
jdeps
command executed for tools.jar (java library jar).Jdeps Output |
To print class level dependency use -v option.
Jdeps Class Level Output |
There are a few more useful options available for use with
jdeps
that are not covered in this post, but these can be seen by running jdeps -help.
No comments:
Post a Comment