vico
vico

Reputation: 18221

No wsgen in JDK 17

I have JDK 17 and JDK 1.8 on my Windows PC. Why does JDK 17 not contain wsgen.exe in the bin directory while JDK 1.8 contains it? How can I build web applications without wsgen?

Upvotes: 0

Views: 865

Answers (2)

andrewJames
andrewJames

Reputation: 22041

For the latest version of wsgen.bat and wsgen.sh (not wsgen.exe), look in the Jakarta XML Web Services implementation release, which is part of Project Metro from Eclipse.

Steps:

  1. Go to the Jakarta XML Web Services home page and click on the download link (or click here for a direct download). The link is in the sentence containing the text "... available for download...", if you can't spot it.

  2. Unzip the resulting jaxws-ri-4.0.0.zip file.

  3. Look in the bin directory where you will find .bat scripts for Windows and .sh for Linux.

enter image description here


If you need a different version, see the Maven listing here: com/sun/xml/ws/jaxws-ri.

Upvotes: 0

Giorgi Tsiklauri
Giorgi Tsiklauri

Reputation: 11136

Why does JDK 17 not contain wsgen.exe in the bin directory while JDK 1.8 contains it?

Because JEP 320 has removed 9 modules from Java 11, removing alongside tools such as wsgen and wsimport (from jdk.xml.ws).

How can I build web applications without wsgen?

Do you mean how to build? or how to generate/scaffold some code? for building, there are different tools, but for whatever you used wsgen, you could probably refer to maven plugins, some of which you can find here.

You may also find useful this thread.

Upvotes: 1

Related Questions