"jdeps -verbose" - Class Level Dependencies of Class File

This section provides a tutorial example on how to use 'jdeps -verbose' command to show class level dependencies of a given Java class file.

The default behavior of the "jdeps" command is to show package level dependencies, which tells you what packages are needed to run the given class.

If you want to see what actual classes that are needed to run the given class, you can use the "-verbose" option.

herong> jdeps -verbose ImportTestA.class

ImportTestA.class -> java.base
ImportTestA.class -> not found
   ImportTestA        -> com.herongyang.util.ClsA   not found
   ImportTestA        -> com.herongyang.util.ClsB   not found
   ImportTestA        -> java.lang.Object           java.base
   ImportTestA        -> java.lang.String           java.base

As you can see from the output:

Table of Contents

 About This Book

 Java Tools Terminology

 Java Tools Included in JDK

 javac - The Java Program Compiler

 java - The Java Program Launcher

 jar - The JAR File Tool

 jlink - The JRE Linker

 jmod - The JMOD File Tool

 jimage - The JIMAGE File Tool

 jpackage - Binary Package Builder

 javadoc - The Java Document Generator

jdeps - The Java Class Dependency Analyzer

 jdeps - Class Dependency Analyzer Command

 "jdeps class_file" - Dependencies of Class File

"jdeps -verbose" - Class Level Dependencies of Class File

 "jdeps jar_file" - Dependencies of JAR File

 "jdeps --inverse --require ..." - Reverse Dependencies

 jdeprscan - The Java Deprecated API Scanner

 jdb - The Java Debugger

 jcmd - The JVM Diagnostic Tool

 jconsole - Java Monitoring and Management Console

 jstat - JVM Statistics Monitoring Tool

 JVM Troubleshooting Tools

 jhsdb - The Java HotSpot Debugger

 jvisualvm (Java VisualVM) - JVM Visual Tool

 jmc - Java Mission Control

 javap - The Java Class File Disassembler

 keytool - Public Key Certificate Tool

 jarsigner - JAR File Signer

 jshell - Java Language Shell

 jrunscript - Script Code Shell

 Miscellaneous Tools

 native2ascii - Native-to-ASCII Encoding Converter

 JAB (Java Access Bridge) for Windows

 Archived Tutorials


 Full Version in PDF/EPUB