문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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  
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top