Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wsgen 'Class not found'

Tags:

java

jax-ws

wsgen

This is the setup of my java project

enter image description here

I'm trying to run wsgen through cmd:

wsgen -keep -cp . com.library.webservice.HelloWorldImplementation

But I'm getting the error

Class not found: "com.library.webservice.HelloWorldImplementation"

Also, the command is running from C:\ ... \WebServices Test\src

Any idea what I'm doing wrong?

like image 834
jsan Avatar asked Jul 15 '26 10:07

jsan


1 Answers

C:\ ... \WebServices Test\src contains the Java source files, not the class files. The classpath specified via -cp should point to the directory that contains the compiled classes, typically the bin folder. Therefore you should run the command from that directory.

like image 113
M A Avatar answered Jul 17 '26 22:07

M A