JDK1.8 bin目录下的exe文件使用方法简介(二)

extcheck.exe(jar包版本冲突检测):
使用方式:在cmd命令行窗口中键入:extcheck -verbose jarfilename
使用作用:用 jarfilename 包里的 MANIFEST.MF 文件,与java的安装扩展文件夹 jdk/jre/lib/ext 下的所有jar包里的 MANIFEST.MF 文件
里的如下部分内容进行比较,看是否存在版本冲突:
tips:这里选来做校验的jar包文件,它其中的MANIFEST.MF文件需要包含如下内容,那 jackson-annotations-2.8.0.jar 就符合要求

Specification title:Jackson-annotations
Specification version:2.8.0
Specification vendor:FasterXML
Implementation version:2.8.0
Implementation vendor:FasterXML

控制台键入:extcheck -verbose jackson-annotations-2.8.0.jar
控制台输出:

TargetTarget file:jackson-annotations-2.8.0.jar
Specification title:Jackson-annotations
Specification version:2.8.0
Specification vendor:FasterXML
Implementation version:2.8.0
Implementation vendor:FasterXML

Comparing with file:/D:/java/java1.8/jre/lib/ext/access-bridge-64.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/cldrdata.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/dnsns.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/jaccess.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/jfxrt.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/localedata.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/nashorn.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/sunec.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/sunjce_provider.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/sunmscapi.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/sunpkcs11.jar
Comparing with file:/D:/java/java1.8/jre/lib/ext/zipfs.jar

此文件无需校验时:The target file does not have a specification title
校验通过:No conflicting installed jar found.
校验不通过,有相同版本jar包时:

CONFLICT DETECTED
Conflicting file:file:/D:/java/java1.8/jre/lib/ext/jackson-annotations-2.8.0.jar

Installed Version:2.8.0
Implementation Title:Jackson-annotations
Implementation Version:2.8.0
Implementation Vendor:FasterXML
Conflicting installed jar found.  Use -verbose for more information.

你可能感兴趣的:(java文件夹理解)