- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the use of the jdeprscan tool in Java 9?
The jdeprscan tool can be used for static analysis of classes, archives, and folders for the presence of API elements marked as deprecated. This tool only detects items marked as deprecated in Java SE, and it doesn't detect marked items in other libraries. All classes on which the examined class or set of classes depends must be available when compiling or running a class. In the absence of a dependent class, this tool provides a list of unavailable classes preceded by the error: cannot find a class.
Below is the syntax for the jdeprscan tool.
Syntax
jdeprscan [options] {dir | jar | class}
The "jdeprscan" command can be supported by "jmods\jdk.jdeps.jmod" module file, which can be linked into "lib\modules" JImage file in JDK 9, 10, and 11.
In the below, we have different options available for jdeprscan tool:
Options: --class-path PATH --for-removal --full-version -? -h --help -l --list --release 6|7|8|9|10|11 -v --verbose --version
- Related Articles
- What is the JLink tool in Java 9?
- What is the importance of jdeps tool in Java 9?
- What is the importance of the jcmd tool in Java 9?
- Differences between Jdeps and Jdeprscan tools in Java 9?
- What is the use of the Cleaner class in Java 9?
- What is the use of the Optional.stream() method in Java 9?
- What is the use of the toEpochSecond() method in Java 9?
- What is the use of underscore keyword in Java 9?
- What is the use of the Tab key in JShell in Java 9?
- How JShell tool works internally in Java 9?
- What is the use of a multi-version compatible jar in Java 9?
- What is the use of the "requires" clause in a module-info file in Java 9?
- What is the use of the "export" clause in a module-info file in Java 9?
- What is the importance of REPL in Java 9?
- What is the importance of the ProcessHandle interface in Java 9?
