This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
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 is not working

 
shan raj
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have installed cygwin in my windows XP machine and add path with ant home. I am able to login into the cygwin but when i issue ant command it is throwing below issue. But the same executing fine when i issue ant.bat.

>which bash
/cygdrive/c/cygwin/bin/bash

>bash
bash-3.2$ ant
bash: /cygdrive/d/cc/../ant
/apache-ant-1.6.5/bin/ant: /bin/sh: bad interpreter: No such file or directory
bash-3.2$ ant.bat
Buildfile: build.xml does not exist!
Build failed

Could some one please help me to resolve this issue.

One more think I am wondering why it is returning /cygdrive/c/cygwin/bin/bash when we issue which bash command. It should be usr/bin/bash.

Thanks in Advance
Shan
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you running Ant through Cygwin? Ant should run crossplatform, unless you have added *nix specific tasks?

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll also need to be very careful with classpaths under Cygwin if you're running the Windows version of Java; Windows classpaths need semi-colon separators, which must be escaped under Cygwin.
 
shan raj
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank for your inputs.

I have resolved this issue by reinstalling. Now it is working fine.

Regards
Shan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic