jdk.jdeps/com.sun.tools.jdeprscan.Main - "jdeprscan" Command

Q

How to run "jdeprscan" command from JDK lib\modules JImage file?

✍: FYIcenter

A

"jdeprscan" command allows you to scans a jar file (or some other aggregation of class files) for uses of deprecated API elements.

"jdeprscan" command is supported by the jmods\jdk.jdeps.jmod module file, which is also linked into the lib\modules JImage file.

You can run the "jdeprscan" command using the lib\modules JImage file as described below:

fyicenter> %JDK_HOME%\bin\java --module jdk.jdeps/com.sun.tools.jdeprscan.Main

Usage: rmic <options> <class names>

Usage: jdeprscan [options] {dir|jar|class} ...

options:
        --class-path PATH
        --for-removal
        --full-version
  -? -h --help
  -l    --list
        --release 6|7|8|9|10|11
  -v    --verbose
        --version

 

jdk.jdeps/com.sun.tools.jdeps.Main - "jdeps" Command

jdk.jdeps/com.sun.tools.javap.Main - "javap" Command

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-09-04, 1489🔥, 0💬