‘./’ will try to look for the ‘ant’ executable under the current working directory.
Try issuing the command, [EMAIL PROTECTED] /]$ ant -version instead of, [EMAIL PROTECTED] /]$ ./ant -version Hope this helps! Thanks, Vivek Payala | Team Lead – Configuration Management (Professional & Managed Services Group) | Persistent Systems [EMAIL PROTECTED] | Cell: +91 93701 31472 | Tel: +91 (20) 3023 6447 Innovation in software product design, development and delivery- www.persistentsys.com -----Original Message----- From: Jon [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2008 3:12 PM To: user@ant.apache.org Subject: Ant 1.6 installation I'm trying to install Apache Ant 1.6 and have updated the following entries within */etc/profile* to ensure that the installation is complete. JAVA_HOME=/usr/java/j2sdk1.4.2_18 *ANT_HOME=/usr/local/apache2/apache-ant-1.6.0* export JAVA_HOME PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC ANT_HOME export PATH=$JAVA_HOME/bin:$PATH:*ANT_HOME/bin * The problem is that when I run ./ant -version from any other path other than the command line, the version number is displayed. Hence any user trying to use *ant* from any other path would not be able to do so: * /usr/java/j2sdk1.4.2_18/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:ANT_HOME/bin:/home/sinfo/bin [EMAIL PROTECTED] /]$ ./ant -version -bash: ./ant: No such file or directory [EMAIL PROTECTED] /]$ cd $ANT_HOME/bin [EMAIL PROTECTED] bin]$ ./ant -version Apache Ant version 1.6.0 compiled on December 18 2003 [EMAIL PROTECTED] bin]$* Rgds, -- Jon Camilleri Mobile (MT): 00356 7982 7113 E-mail: [EMAIL PROTECTED] Please consider your environmental responsibility before printing this e-mail. I usually reply to e-mails within 2 business days. If it's urgent, give me a call. DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.