英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论