ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dalton, Tom" <>
Subject RE: exec - Cannot run program 'start' CreateProcess error=2
Date Wed, 16 Dec 2009 09:29:33 GMT
You probably need to specify the working dir for the start executable and might also need to
add ./ to start if wherever it is located isn't in the system PATH.

<exec dir="<path/to/start>"
  <arg line=" cmd /c notepad"/>

Hope that helps!


-----Original Message-----
From: as rao [] 
Sent: 16 December 2009 07:40
Subject: Re: exec - Cannot run program 'start' CreateProcess error=2


To simplifying the problem statement, when I try to run the default target in the following
build file:

<project name="test"  basedir="." default="test-target">

<target name="test-target">
        <exec executable="start"
      <arg line=" cmd /c notepad"/>

I am getting same error.

a s

On Wed, Dec 16, 2009 at 11:51 AM, as rao <> wrote:

> Hi
> During starting of app server using ant / build.xml (given by the 
> vendor), I faced the following issue:
> My env is windows XP, ant 1.7.1
> I am running a build.xml (given by the vendor) to start an app server, 
> from DOS prompt. I got the following error:
> ---------------------------------------------------------------
> D:\Installations\11gPS1\build.xml:538: The following error occurred 
> while executing this line:
> D:\Installations\11gPS1\build.xml:555: The following error occurred 
> while executing this line:
> D:\Installations\11gPS1\build.xml:635: Execute failed:
> Cannot run program "start": CreateProcess error=2, The system cannot 
> find the file specified
> ---------------------------------------------------------------
> when I looked into the build.xml I found that its exec trying to run 
> 'start' command using which it intend to run a .cmd file to start the 
> app server .
> And interestingly from the same DOS prompt I could run "start" command 
> to open a notepad, and so I tend to think that there are no issues 
> with PATH, shell, etc.
> Any suggestions?
> cheers
> a s

a s rao

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message