Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to call WSDL2Java.main, but having issues when redirecting output

 
Mikel Warren
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Apache axis 1.x, and I have a simple java program that calls the static main method of org.apache.axis.wsdl.WSDL2Java.
I am passing in the String array with the -o (redirect output) option along with the WSDL url.
If I leave out the -o option, the java files get created with no problems, but if I try to redirect, I get the following exception.
Also, if I use java.exe to call org.apache.axis.wsdl.WSDL2Java directly from a DOS command prompt, I can use the -o parameter with no problems
I'm using JBuilder 2006, if that matters.

Thanks



 
Mikel Warren
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok - I figured it out.
Apparently you can't do '-o c:\\blah', but instead have to do '-oc:\\blah' (i.e. no space)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic