Java Tools Tutorials - Herong's Tutorial Examples - v6.23, by Herong Yang
"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
javac - The Java Program Compiler
java - The Java Program Launcher
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
jcmd - The JVM Diagnostic Tool
jconsole - Java Monitoring and Management Console
jstat - JVM Statistics Monitoring Tool
jhsdb - The Java HotSpot Debugger
jvisualvm (Java VisualVM) - JVM Visual Tool
javap - The Java Class File Disassembler
keytool - Public Key Certificate Tool
jrunscript - Script Code Shell
native2ascii - Native-to-ASCII Encoding Converter