Browse Source

steal 'CreateProcess error=2' text from manual and add it to the FAQ

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@815669 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
6b524acbb1
2 changed files with 22 additions and 1 deletions
  1. +1
    -1
      docs/manual/CoreTasks/exec.html
  2. +21
    -0
      xdocs/faq.xml

+ 1
- 1
docs/manual/CoreTasks/exec.html View File

@@ -75,7 +75,7 @@ types listed in the environment variable PATHEXT. That is only used by the shell
<p>A common problem is not having the executable on the PATH. In case you get an error
message <tt>Cannot run program "...":CreateProcess error=2. The system cannot find
the path specified.</tt> have a look at your PATH variable. Just type the command directly on
the command line and if Windows find it, Ant should do it too. (Otherwise ask on the user mailinglist for help.) If Windows can not execute the program add the directory of the programm
the command line and if Windows finds it, Ant should do it too. (Otherwise ask on the user mailinglist for help.) If Windows can not execute the program add the directory of the programm
to the PATH (<tt>set PATH=%PATH%;dirOfProgram</tt>) or specify the absolute path in the
<tt>executable</tt> attribute in your buildfile.
</p>


+ 21
- 0
xdocs/faq.xml View File

@@ -1051,6 +1051,27 @@ shell-prompt> m4 foo.m4 > foo
</answer>
</faq>

<faq id="CreateProcess_error_2">
<question><code>&lt;exec&gt;</code> fails with <code>"Cannot run
program "...":CreateProcess error=2"</code> on
Windows.</question>
<answer>

<p>A common problem is not having the executable on the
PATH. In case you get an error message <code>Cannot run
program "...":CreateProcess error=2. The system cannot find
the path specified.</code> have a look at your PATH
variable.</p>

<p>Just type the command directly on the command line and if
Windows finds it, Ant should do it too. (Otherwise ask on
the user mailinglist for help.) If Windows can not execute
the program add the directory of the programm to the PATH
(<code>set PATH=%PATH%;dirOfProgram</code>) or specify the
absolute path in the <code>executable</code> attribute in
your buildfile.</p>
</answer>
</faq>
</faqsection>

<faqsection title="Ant and IDEs/Editors">


Loading…
Cancel
Save