[英]command in wsimport, error: -Xnocompile is an invalid option or argument
Good afternoon everyone I have some problem.. I tried to export cisco library to my java project using cmd wsimport
command but an error message appears when i run this: 大家下午好,我遇到了一些问题..我尝试使用cmd
wsimport
命令将cisco库导出到我的Java项目中,但是在运行以下命令时出现错误消息:
wsimport -keep -b schema/current/AXLSOAP.xsd -Xnocompile -s src -d bin -verbose schema/current/AXLAPI.wsdl
I get this error: 我收到此错误:
error: -Xnocompile is an invalid option or argument
I also tried searching on google, they said that by default this -Xnocompile
command default value is false.. my assumption it means this command disable by default.. 我也尝试在Google上搜索,他们说默认情况下
-Xnocompile
命令的默认值为false。
Is there any solution to solve this problem? 有解决此问题的解决方案吗? thank you very much
非常感谢你
okay i'm found the solution, you can find -Xnocompile command in wsimport that located in C:\\Program Files\\Java\\jdk1.8.0_45\\bin\\wsimport 好的,我找到了解决方案,您可以在位于C:\\ Program Files \\ Java \\ jdk1.8.0_45 \\ bin \\ wsimport的wsimport中找到-Xnocompile命令
the solution is just force it run in your java project get into project directory using cmd then run the ws import with this command 解决的办法是强制它在您的Java项目中运行,使用cmd进入项目目录,然后使用此命令运行ws import
C:\Users\VanTz\workspace\EM> "C:\Program Files\Java\jdk1.8.0_45\bin\wsimport" -keep -b schema/current/AXLSoap.xsd -Xnocompile -s src -d bin -verbose schema/current/AXLAPI.wsdl
it works 有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.