I'm using Java 6 for learning more about web Services (JAX-WS). I also read that JAX-WS latest version is available with Metro, i.e. If you're not using JDK6 and planning to use JAX-WS, you can use Metro.
我正在使用Java 6来了解有关Web服务(JAX-WS)的更多信息。我还读到JAX-WS最新版本可用于Metro,即如果您不使用JDK6并计划使用JAX-WS,则可以使用Metro。
I would like to know which version of the JAX-WS is shipped with my JDK? I'm using jdk1.6.0_22.
我想知道我的JDK附带了哪个版本的JAX-WS?我正在使用jdk1.6.0_22。
2 个解决方案
#1
10
JAX-WS is part of standart JDK since version 6. You can learn which version of jax-ws by means wsgen or wsimport. You can find them bin subdirectory of your jdk installation.
从版本6开始,JAX-WS是标准JDK的一部分。您可以通过wsgen或wsimport了解哪个版本的jax-ws。您可以在jdk安装中找到它们的bin子目录。
Q. How do I find out which version of the JAX-WS RI I'm using? Run the following command
问:如何找出我正在使用的JAX-WS RI版本?运行以下命令
$ wsgen or wsimport -version Alternatively, each JAX-WS jar has version information in its META-INF/MANIFEST.MF, such as this:
Build-Id: 12/14/2005 12:49 PM(dkohlert) Build-Version: JAX-WS RI 2.0-12/14/2005 12:49 PM(dkohlert)-ea3$ wsgen或wsimport -version或者,每个JAX-WS jar在其META-INF / MANIFEST.MF中都有版本信息,例如:Build-Id:12/14/2005 12:49 PM(dkohlert)Build-Version: JAX-WS RI 2.0-12 / 14/2005 12:49 PM(dkohlert)-ea3
#2
4
Well, according to this link, Java 1.6 comes with at least JAX-RS 2.0. However, according to this other link, Java 1.6 up to release 3 comes bundled with JAX-RS 2.0 and updates 4 and up contain the 2.1 api version.
那么,根据这个链接,Java 1.6至少带有JAX-RS 2.0。但是,根据这个其他链接,Java 1.6到版本3捆绑了JAX-RS 2.0和更新4及更高版本包含2.1 api版本。
If you want to use the latest available version you can get a zip file following this link, or if you are using Maven you must include the following dependency in your pom.xml:
如果要使用最新的可用版本,可以在此链接后获取zip文件,或者如果您使用的是Maven,则必须在pom.xml中包含以下依赖项:
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2.3</version>
</dependency>
#1
10
JAX-WS is part of standart JDK since version 6. You can learn which version of jax-ws by means wsgen or wsimport. You can find them bin subdirectory of your jdk installation.
从版本6开始,JAX-WS是标准JDK的一部分。您可以通过wsgen或wsimport了解哪个版本的jax-ws。您可以在jdk安装中找到它们的bin子目录。
Q. How do I find out which version of the JAX-WS RI I'm using? Run the following command
问:如何找出我正在使用的JAX-WS RI版本?运行以下命令
$ wsgen or wsimport -version Alternatively, each JAX-WS jar has version information in its META-INF/MANIFEST.MF, such as this:
Build-Id: 12/14/2005 12:49 PM(dkohlert) Build-Version: JAX-WS RI 2.0-12/14/2005 12:49 PM(dkohlert)-ea3$ wsgen或wsimport -version或者,每个JAX-WS jar在其META-INF / MANIFEST.MF中都有版本信息,例如:Build-Id:12/14/2005 12:49 PM(dkohlert)Build-Version: JAX-WS RI 2.0-12 / 14/2005 12:49 PM(dkohlert)-ea3
#2
4
Well, according to this link, Java 1.6 comes with at least JAX-RS 2.0. However, according to this other link, Java 1.6 up to release 3 comes bundled with JAX-RS 2.0 and updates 4 and up contain the 2.1 api version.
那么,根据这个链接,Java 1.6至少带有JAX-RS 2.0。但是,根据这个其他链接,Java 1.6到版本3捆绑了JAX-RS 2.0和更新4及更高版本包含2.1 api版本。
If you want to use the latest available version you can get a zip file following this link, or if you are using Maven you must include the following dependency in your pom.xml:
如果要使用最新的可用版本,可以在此链接后获取zip文件,或者如果您使用的是Maven,则必须在pom.xml中包含以下依赖项:
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2.3</version>
</dependency>