diff --git a/docs/manual/CoreTasks/exec.html b/docs/manual/CoreTasks/exec.html index 547f36eb1..e20eba63b 100644 --- a/docs/manual/CoreTasks/exec.html +++ b/docs/manual/CoreTasks/exec.html @@ -75,7 +75,7 @@ types listed in the environment variable PATHEXT. That is only used by the shell
A common problem is not having the executable on the PATH. In case you get an error message Cannot run program "...":CreateProcess error=2. The system cannot find the path specified. 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 (set PATH=%PATH%;dirOfProgram) or specify the absolute path in the executable attribute in your buildfile.
diff --git a/xdocs/faq.xml b/xdocs/faq.xml index 55e1fe01a..86e981699 100644 --- a/xdocs/faq.xml +++ b/xdocs/faq.xml @@ -1051,6 +1051,27 @@ shell-prompt> m4 foo.m4 > foo +<exec>
fails with "Cannot run
+ program "...":CreateProcess error=2"
on
+ Windows.A common problem is not having the executable on the
+ PATH. In case you get an error message Cannot run
+ program "...":CreateProcess error=2. The system cannot find
+ the path specified.
have a look at your PATH
+ variable.
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
+ (set PATH=%PATH%;dirOfProgram
) or specify the
+ absolute path in the executable
attribute in
+ your buildfile.