Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building with ant from eclipse

 
sonia pandit
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following in the build.xml


I am running it from eclipse and I am getting a java.io.IOException: Cannot run program "wsgen": CreateProcess error=2, The system cannot find the file specified.
It looks like wsgen cannot be found. Anyone seen this before. windows->preferences->tasks
shows that wsgen is there

Thanks in advance.
 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonia:

You probably need to tell Ant what the path to wsgen is.

John.
 
sonia pandit
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I set the path to point to the ant libraries. But from Eclipse? Eclipse already knows about Ant. So why is it having a problem?
 
Campbell Ritchie
Sheriff
Pie
Posts: 50240
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better discussed in the IDEs forum. Moving.
 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonia:

What I meant was, does Ant know where to find the wsgen executable file? Given the error you're getting, it looks like it can't. Have you tried running ant from the command line?

John.
 
sonia pandit
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried but I get an error because it cant find Ant, But i did add it to the path. So I don't know what the problem is.
 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonia:

Have you tried using the absolute path?

John.
 
sonia pandit
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you mean in the build.xml. Could you post what the build.xml should look like?

Thanks
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No; we don't know where your wsgen program is located.
 
sonia pandit
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Do you mean like this?">
 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonia:

Yes, or create a path element (which will work out to the same thing).

John.
 
Seguya Ronald Chris
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a posibility that you don't have the wsgen within your eclipse installation.
You could try searching for that term in you java directory, usually under a path like; C:\Program Files\Java\jdk1.6.0\bi\wsgen

Use this path for the exec i.e. <exec executable="D:\Program Files\Java\jdk1.6.0\bin\wsgen">

I had a similar issue but this solved my problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic