Home > Java > javaTutorial > What is the purpose of jdeprscan tool in Java 9?

What is the purpose of jdeprscan tool in Java 9?

王林
Release: 2023-08-29 23:53:02
forward
1086 people have browsed it

jdeprscan工具在Java 9中的用途是什么?

jdeprscan Tool can be used for static analysis of classes, files> and folders to see if there are API elements marked deprecated. This tool only detects projects marked as deprecated in Java SE, and will not detect projects marked as deprecated in other libraries. All classes on which the checked class or set of classes depend must be available when compiling or running a class. If a dependent class is missing, this tool provides a list of unavailable classes preceded by the error: Class

not found.

The following is the syntax of jdeprscan tool

.

Syntax

<strong>jdeprscan [options] {dir | jar | class}</strong>
Copy after login

"jmods\jdk.jdeps" can support the "jdeprscan" command.jmod " module file, which can be linked to the "lib\modules" JImage file in JDK 9, 10 and 11

. < p > Below, we jdeprscanTool provides different options

:

<strong>Options:
       --class-path PATH
       --for-removal
       --full-version
-? -h  --help
-l     --list
       --release 6|7|8|9|10|11
-v     --verbose
       --version</strong>
Copy after login
###

The above is the detailed content of What is the purpose of jdeprscan tool in Java 9?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template