Java class dependency analyzer.
jdeps [options] classes ...
Name of the classes to analyze. You can specify a class that can be found in the class path, by its file name, a directory, or a JAR file.
Destination directory for DOT file output. If specified, jdeps
will generate one dot file per each analyzed archive named <archive-file-name>.dot listing the dependencies, and also a summary file named summary.dot listing the dependencies among the archives.
Prints dependency summary only.
Prints all class-level dependencies.
Prints package-level dependencies excluding dependencies within the same archive.
Prints class-level dependencies excluding dependencies within the same archive.
Specifies where to find class files.
Finds dependencies in the specified package. You can specify this option multiple times for different packages. The -p
and -e
options are mutually exclusive.
Finds dependencies in packages matching the specified regular expression pattern. The -p
and -e
options are mutually exclusive.
Restricts analysis to classes matching pattern. This option filters the list of classes to be analyzed. It can be used together with -p
and -e
which apply pattern to the dependencies.
Finds class-level dependences in JDK internal APIs. By default, it analyzes all classes specified in the -classpath
option and in input files unless you specified the -include
option. You cannot use this option with the -p
, -e
, and -s
options.
Warning: JDK internal APIs may not be accessible in upcoming releases.
Shows profile or the file containing a package.
Restricts analysis to APIs, for example, dependences from the signature of public
and protected
members of public classes including field type, method parameter types, returned type, and checked exception types.
Recursively traverses all dependencies.
Prints version information.
Prints help message for jdeps
.