javajava-ee-8wsgen

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?


Solution

  • 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.