如何确定我的OpenJDK库中使用了哪个版本的Xerces?

huangapple go评论81阅读模式
英文:

how do I figure out what version of xerces used in my OpenJDK library?

问题

我正在开发一个使用Spring框架的Java应用程序。Spring使用Apache Xerces库,该库包含在随我的Java OpenJDK 8安装一起提供的rt.jar中。我想知道如何确定rt.jar中使用的Xerces确切版本。

https://stackoverflow.com/questions/63224137/how-to-find-what-apache-xerces-version-does-spring-framework-use 上提供的建议答案并没有解答我的问题。它没有说明如何从rt.lib中找到xerces版本。

英文:

I am developing a Java application using Spring framework. Spring uses the Apache Xerces library which is included inside rt.jar comes with my java OpenJDK 8 installation. I wonder how do I know what exact version of Xerces is used in rt.jar?

The suggested answer at https://stackoverflow.com/questions/63224137/how-to-find-what-apache-xerces-version-does-spring-framework-use does not answer my question here. It does not tell how to find out the xerces version from rt.lib

答案1

得分: 1

在Java 8及以前的版本中,您可以使用以下命令检查捆绑的xerces版本:

java com.sun.org.apache.xerces.internal.impl.Version

在Java 9及更高版本中,您可以使用以下命令提取jmods/java.xml.jmod

jmod extract java.xml.jmod

然后查看刚提取的文件夹中的legal/xerces.md。通常,版本号会在第一行以注释文本的形式显示。

英文:

Up to java 8 you check the bundled xerces version with:

java com.sun.org.apache.xerces.internal.impl.Version

After java 8 (i.e from java 9 upwards) you can extract the jmods/java.xml.jmod with:

jmod extract java.xml.jmod

And then look in the just extracted legal/xerces.md. Usually the version is on the first line stated as a commented text.

huangapple
  • 本文由 发表于 2020年8月4日 16:36:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/63243062.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定