Thursday

wsimport - error parsing wsdl - The sytem cannot find the path specified

BUG:
While I was parsing wsdl file by using wsimport command, I got this error: “The sytem cannot find the path specified”
The reason: "Program Files" path contains white space characters.

FIX:
Firstly>> cd C:\temp
Secondly>> "C:\Program Files\Java\jdk1.8.0_25\bin\wsimport" -keep http://xxxx?wsdl
Generated files will export to C:\temp

wsimport is not recognized as internal or external command

BUG:
While i was generating stubs using wsimport command, i got this error: "wsimport is not recognized as internal or external command"

FIX:

1.     Go to my computer > right click > select properties.
2.     On the properties tab > Advanced system settings > Advanced tab
3.     Enviroment variables
4.     System Variables > Path > Edit
5.     Add your jdk bin directory " C:\Program Files\Java\jdk1.7.0_79\bin"