Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant Build fails in eclipse

 
Nilofar Syed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to build my project for the very first time in eclipse using ant.

when I run build.xml , getting an error below:

D:\Temp\java\build.xml:475: Execute failed: java.io.IOException: CreateProcess: .... D:/Temp/source code/ error=3

Help needed!!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you think that including the portion of the Ant file that causes the error would be a good idea?
 
Nilofar Syed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry..I didn't get what you meant by that

ok.Let me put it this way, build.xml runs fine in unix, I'm trying to configure it now in windows using eclipse.

I've made all the necessary changes to build.xml, but still I guess something is missed out!!

Hope this makes sense!!!

Appreciate your help!



 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What David meant is that you need to post your build.xml. Don't post the whole thing - just the target than includes the offending line (475). And please identify that line! Also, was the error message you posted the only output when you ran ant? Or was that error message part of processing the target? If the latter, post the full output for the target.
 
Nilofar Syed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here it is,

build.xml :

<target name="idl.idls.internal">
[475] <exec dir="./" executable="${orbix.idl.compiler}" output="idl_compiler.out">
<arg line="-I${orbix.idl.dirs} -jbase=-P${idls.internal.package}:-O./source -jpoa=-P${idls.internal.package}:- O./source" />
<arg line="${idls.internal.dir}/eps.idl" />
<arg line="${idls.internal.dir}/IFTSConstDefs.idl" />
<arg line="${idls.internal.dir}/IFTSidl" />
</exec>
</target>

with properties:

<property name="idls.internal.dir" value="D:/Temp/source code/idls/internal" />
<property name="orbix.idl.compiler" value="${orbix.dir}/asp/${orbix.version}/bin/idl" />
<property name="orbix.idl.dirs" value="${orbix.dir}/asp/${orbix.version}/idl" />
<condition property="orbix.dir" value="C:/PROGRA~1/IONA">
<os family="windows" />
</condition>
<property name="orbix.version" value="${env.ORBIX_VERSION}" />

The line highlighted in bold is where I'm getting error(475)
The error I posted is the only thing I'm getting when I build it.
 
Nilofar Syed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the issue, ${env.ORBIX_VERSION} was not defined... obvious thing missed

Thanks a lot for your concern...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic