Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to start and stop my tomcat through ant build.xml as follows,

I am running the ant script in cygwin , i get the following error D:\build-cygwin-copy_converted.xml:53: Execute failed: java.io.IOException: Cannot run program "shutdown.sh" (in directory "D:\apache-tomcat-6.0.36\bin"): CreateProcess error=2, The system cannot find the file specified Could you please advise?

share|improve this question

I think you need to correct the path to /cygdrive/d/apache-tomcat-6.0.36/bin

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.