Have you tried something like this?
wsgen -cp ./bin -d ./src -s ./src com.example.ws.Test
The classpath folder is were wsgen
looks for class files. The package within the class is resolved to folder paths, so com.example.ws.Test
should be a file like com/example/ws/Test.class
within the bin
classpath folder.
From the Java documentation:
Each classpath should end with a filename or directory depending on what you are setting the class path to:
- For a .jar or .zip file that contains .class files, the class path ends with the name of the .zip or .jar file.
- For .class files in an unnamed package, the class path ends with the directory that contains the .class files.
- For .class files in a named package, the class path ends with the directory that contains the "root" package (the first package in the full package name).