“wsimport"在命令提示符中无法识别错误 [英] 'wsimport' is not recognized error in command prompt

查看:38
本文介绍了“wsimport"在命令提示符中无法识别错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是网络服务的新手.我正在尝试使用以下命令生成存根:

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

我在 cmd 中收到此错误:

I am getting this error in the cmd:

无法识别 wsimport

wsimport is not recognized

我的Java环境变量系统路径是C:\Program Files (x86)\Java\jdk1.7.0.我做错了什么?

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

我通过使用来自 netbeans 而不是来自 cmd 的 wsimport 解决了这个问题……但我仍然不知道为什么我不能从 cmd 使用它.

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.

推荐答案

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

这是我的 jdk 所在的位置,适用于我的系统:

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

  1. 转到我的电脑 >> 右键单击​​并选择属性.
  2. 在属性选项卡上选择高级系统设置(Windows 7)
  3. 点击环境变量
  4. 选择路径并点击编辑选项
  5. 添加
    ";C:\Program Files\Java\jdk1.7.0_60\bin"
    最后.
  6. 完成.

这篇关于“wsimport"在命令提示符中无法识别错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆