JDK 11 tools:: jdeps


The useful tool JDeps can be used to analyze dependencies on JDK 11, it can even show dependencies of SQL.

[fdemeloj@fdemeloj cases]$ /home/fdemeloj/Downloads/jdk-11.0.1/bin/jdeps GFG.class
GFG.class -> java.base
<unnamed> -> java.io java.base
<unnamed> -> java.lang java.base

The option -v, verbose, show more details:

[fdemeloj@fdemeloj cases]$ /home/fdemeloj/Downloads/jdk-11.0.1/bin/jdeps -v GFG.class
GFG.class -> java.base
GFG -> java.io.PrintStream java.base
GFG -> java.lang.Object java.base
GFG -> java.lang.String java.base
GFG -> java.lang.System java.base

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s