I've got the job of creating a webservice for school. The problem is for some reason that I will not get wsgen to work properly I have got a class named Warehouse, which is in the package: com.horstmann.corejava.
Now I am creating this project called Warehouse, and after that I commandPrump (CMD) and type "CD C: \ Program Files (x86) \ Java \ jdk1.6.0_20 \ bin" where Wsgen.exe is
I'm typing the next line: "wsgen-cd C: \ Users \ Julian \ Documents \ NetBeans Projection \ wires com. Harsten.corejava warehouse"
The error is that he does not search for the class, so I change it: "wsgen-cd C: \ Users \ Julian \ Documents \ NetbeansProjects \ Warehouse \ build \ classes com.horstmann.corejava.Warehouse"
The next error here is that I am not able to put that files in the directory ...
Anyone got the solution, there will be a lot! According to
is not - cd
option you -cp
should be used, I think.
Wg-CP & lt; Place of Jars & gt; Com.horstmann.corejava.Warehouse
When you use -cd
, I suspect that the command is set to -d
Is confused with that which target directory where output files are generated, and the second message explains.
Maybe this post will help me, I was successfully using wsgen
Comments
Post a Comment