Java Tools Tutorials - Herong's Tutorial Examples - v6.23, by Herong Yang
jdeprscan - Deprecated API Scanner Command
This section describes what is 'jdeprscan' - is a command line tool to run the Java Deprecated API Scanner tool.
What Is "jdeprscan"? - "jdeprscan", Java Deprecated API Scanner tool, is a command line tool to scan for uses of deprecated API elements of given Java class files. Input classes can be given as a path name to a .class file, a directory or a JAR file.
"jdeprscan" has been included in JDK installation since JDK 8. And it is represented by the %java_home%\bin\jdeprscan.exe program file.
If you have %java_home%\bin directory included in "path" the environment variable, you can run "jdeprscan --help" to see a complete list of all options:
herong> jdeprscan --help Usage: jdeprscan [options] {dir|jar|class} ... options: --class-path PATH --for-removal --full-version -? -h --help -l --list --release 7|8|9|10|11|12 -v --verbose --version Scans each argument for usages of deprecated APIs. An argument may be a directory specifying the root of a package hierarchy, a JAR file, a class file, or a class name. The class name must be specified using a fully qualified class name using the $ separator character for nested classes, for example, java.lang.Thread$State The --class-path option provides a search path for resolution of dependent classes. The --for-removal option limits scanning or listing to APIs that are deprecated for removal. Cannot be used with a release value of 6, 7, or 8. The --full-version option prints out the full version string of the tool. The --help (-? -h) option prints out a full help message. The --list (-l) option prints out the set of deprecated APIs. No scanning is done, so no directory, jar, or class arguments should be provided. The --release option specifies the Java SE release that provides the set of deprecated APIs for scanning. The --verbose (-v) option enables additional message output during processing. The --version option prints out the abbreviated version string of the tool.
For more information, see "jdeprscan" reference page at https://docs.oracle.com/en/java/javase/17/docs/specs/man/jdeprscan.html.
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
►jdeprscan - The Java Deprecated API Scanner
►jdeprscan - Deprecated API Scanner Command
"jdeprscan jar_file" - Deprecated API of Class File
"jdeprscan jar_file" - Deprecated API of JAR File
"jdeprscan --release X" - Deprecated API as of Release X
"jdeprscan --list" - List All Deprecated APIs
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