• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

java.io.IOException:CreateProcess error=5, Access is denied(While running build.xml in Ant editor)

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to webservices.
i am running one sample standalone program from developerworks IBM.

here is the build.mxl file that i am using

project default="wsgen">

<target name="wsgen" >

<exec executable="wsgen">

<arg line="-cp ./bin -keep -s ./src -d ./bin com.myfirst.wsServer.SayHello"/>

</exec>

</target>

</project>


While running this file , i am getting error like
Cannot run program "wsgen": CreateProcess error=2, The system cannot find the file specified

And if i change the <exec executable="to the path where i am creating build.xml file">

i am getting error like

java.io.IOException: Cannot run program ----CreateProcess error=5, Access is denied...

Please help me out in this...
Thankx in advance
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Have you tried using the wsgen command that is included in the Java SE 6 JDK?
Here is an ant-script that does just that. You have to modify the places indicated by MODIFY HERE.

Best wishes!
 
Krish mys
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ivan,

Thanks for your post.

but, still i am getting the same error.

now i changed the "exec" of build.xml file like this

<project default="wsgen">

<target name="wsgen" >

<exec executable="C:\jdk-1.6\bin">


<arg line="-cp ./bin -keep -s ./src -d ./bin com.myfirst.wsServer.SayHello"/>

</exec>

</target>

</project>


after executing this i am getting "Execute failed: java.io.IOException: Cannot run program "C:\jdk-1.6\bin": CreateProcess error=5, Access is denied".

 
Krish mys
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks its working fine now...
i need to give C:\jdk-1.6\bin\wsgen as the path for executable.
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic