java 如何判断哪个 jdk 包含哪个版本的 JAX-WS
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5195740/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How tell which jdk contains which versions of JAX-WS
提问by Cincinnati Joe
There's a fix in one of the more recent versions of JAXB (2.2.1). I'm trying to determine if that's included in a recent update to Java 6. Is there a way to tell which which versions of a JVM/JRE/JDK contain which versions of JAX-WS/JAXB?
在 JAXB (2.2.1) 的较新版本之一中进行了修复。我正在尝试确定 Java 6 的最近更新中是否包含它。有没有办法判断 JVM/JRE/JDK 的哪些版本包含 JAX-WS/JAXB 的哪些版本?
Looking at Sun/Oracle's site, I can view the release notesfor the latest versions of Java SE 6, but I can't tell which versions of the XML libs are included. I guess I could download the latest JDK and run 'xjc -version', but there should be a better way (esp. if it was added in a previous release - I don't want to keep downloading JREs to tell which was the first with the version of JAXB I'm interested in).
查看 Sun/Oracle 的站点,我可以查看最新版本的 Java SE 6的发行说明,但我无法确定包含哪些版本的 XML 库。我想我可以下载最新的 JDK 并运行“xjc -version”,但应该有更好的方法(特别是如果它是在以前的版本中添加的 - 我不想继续下载 JRE 来判断哪个是第一个使用我感兴趣的 JAXB 版本)。
回答by Powerlord
To my knowledge, libraries are not upgraded on each released of the JDK/JRE, except in major versions. Even then, I don't think they cross the minor-version line.
据我所知,除了主要版本之外,JDK/JRE 的每个版本都不会升级库。即便如此,我也不认为它们跨越了次要版本线。
And, to answer your unwritten question, this is the output from xjc -version
on JDK 1.6.0_24:
而且,为了回答您未成文的问题,这是xjc -version
JDK 1.6.0_24 上的输出:
xjc version "JAXB 2.1.10 in JDK 6"
JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build JAXB
2.1.10 in JDK 6)
2.1.10 was released on February 6th, 2009, which was updated in Java 6u14.
2.1.10 于 2009 年 2 月 6 日发布,在 Java 6u14 中进行了更新。