O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

The jdeps command is a static class dependency analyzer and is used to analyze the static dependencies of the application and its libraries. The jdeps command by default shows the package-level dependencies of the input files, which can be .class files, a directory, or a JAR file. This is configurable and can be changed to show class-level dependencies. There are multiple options available to filter out the dependencies and to specify the class files to be analyzed. We have seen a regular use of the -cp command-line option. This option is used to provide the locations to search for the analyzed code's dependencies. 

We have analyzed the class file, JAR files, and the JDK modules, and we also tried out different options of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required