javaweb-serviceswsdlwsimport

'wsimport' is not recognized error in command prompt


I am new at web-services. I am trying to generate the stubs using this command:

wsimport -d ./build -s ./src  -p com.ECS.client.jax http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl -b jaxws-custom.xml

I am getting this error in the cmd:

wsimport is not recognized

My Java environment variable system path is C:\Program Files (x86)\Java\jdk1.7.0. What am I doing wrong?


I resolved this issue by using wsimport from netbeans not from cmd...but I still don't know why I couldn't use it from cmd.


Solution

  • C:\Program Files\Java\jdk1.7.0_60\bin
    

    This is where my jdk is, works for my system:

    1. Go to My computer >> right click and select properties.
    2. On the properties tab select Advanced system settings (Windows 7)
    3. Click enviroment variables
    4. select path and click edit option
    5. add
      ";C:\Program Files\Java\jdk1.7.0_60\bin"
      at the end.
    6. Done.