Question

Java SE 6 and later come bundled with Metro. Surprisingly, a Java ver x -> Metro ver y list is nowhere to be found.

How can I find out what version of Metro is bundled with my JVM? Either by inspecting the VM at runtime or by checking a file from the installed JVM.

Était-ce utile?

La solution

JDK 6 comes bundled with JAX-WS RI. GlassFish Metro is a web services stack that includes JAX-WS RI among other components like JAXB RI or StAX, but it's a separate project. So you would have to download the Metro jars if you want to use it.

JDK 6 started including JAX-WS RI 2.0 and since update 4 it includes JAX-WS RI 2.1.

You can find the JAX-WS RI version your JDK is using with the wsimport command: wsimport -version.

Autres conseils

Using wsimport -version as per David Lizárraga's answer, for various JavaSE 1.7.0 builds I triedon Windows and Linux, I get

JAX-WS RI 2.2.4-b01

This, and David's answer, yield the following table.

 JavaSE   JAX-WS RI
--------+----------
      6        2.1  
      7      2.2.4  
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top