Java Tools Tutorials - Herong's Tutorial Examples - v6.24, by Herong Yang
"jdeps --inverse --require ..." - Reverse Dependencies
This section provides a tutorial example on how to use 'jdeps --inverse' command to show reverse dependencies of a given Java module.
If you want to see reverse dependencies of a given Java module, you can run the "jdeps --inverse --require module_name" command.
Let's use the "java.logging" module as an example:
herong> jdeps --inverse --require java.logging Inverse transitive dependences on [java.logging] java.logging <- java.se java.logging <- jdk.jshell java.logging <- jdk.scripting.nashorn java.logging <- jdk.security.jgss java.logging <- java.rmi <- java.management.rmi java.logging <- java.rmi <- java.se java.logging <- java.rmi <- jdk.hotspot.agent java.logging <- java.rmi <- jdk.jconsole java.logging <- java.rmi <- jdk.jstatd java.logging <- java.rmi <- jdk.naming.rmi java.logging <- java.security.sasl <- java.se java.logging <- java.security.sasl <- jdk.security.jgss java.logging <- java.sql <- java.se java.logging <- java.sql <- java.sql.rowset java.logging <- java.sql.rowset <- java.se java.logging <- java.xml.crypto <- java.se java.logging <- java.security.sasl <- java.naming <- java.se ...
Cool. Now we know which JDK packages are using the "java.logging" module.
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