antRun.pl: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/antRun.pl - from package: ant-scripts
/usr/lib64/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.pl - from package: eclipse-platform

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/share/ant/bin/antRun.pl - from package: ant
/usr/lib/eclipse/plugins/org.apache.ant_1.8.3.v20120321-1730/bin/antRun.pl - from package: eclipse-platform-data

You may install the required package with command apt-get install {package}
Error in other languages:
antRun.pl: bevel nie gevind nie
antRun.pl: comandă negăsită
antRun.pl: comando não encontrado
antRun.pl: commande introuvable
antRun.pl: command not found
antRun.pl: käsku ei ole
antRun.pl: không tìm thấy lệnh
antRun.pl: komanda nerasta
antRun.pl: Kommando nicht gefunden.
antRun.pl: kommandot finns inte
antRun.pl: komut yok
antRun.pl: nie znaleziono polecenia
antRun.pl: níor aimsíodh an t-ordú
antRun.pl: no se encontró la orden
antRun.pl: no s'ha trobat l'ordre
antRun.pl: opdracht niet gevonden
antRun.pl: parancs nem található
antRun.pl: perintah tidak ditemukan
antRun.pl: príkaz nenájdený
antRun.pl: příkaz nenalezen
antRun.pl: команда не найдена
antRun.pl: командата не е открита
antRun.pl: 命令找不到
antRun.pl: コマンドが見つかりません