Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How tell which jdk contains which versions of JAX-WS

Tags:

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?

Looking at Sun/Oracle's site, I can view the release notes for 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).

like image 769
Cincinnati Joe Avatar asked Mar 04 '11 15:03

Cincinnati Joe


People also ask

How do I know what version of JAX-WS I have?

You can learn which version of jax-ws by means wsgen or wsimport. You can find them bin subdirectory of your jdk installation.

Can we have different JDK and JRE versions?

No. Because you never use both of them at the same time. Show activity on this post. JRE is Subset of JDK.


1 Answers

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.

And, to answer your unwritten question, this is the output from xjc -version on 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.

like image 128
Powerlord Avatar answered Oct 11 '22 05:10

Powerlord