antRun.bat: 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/lib64/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.bat - from package: eclipse-platform

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

On Debian possible default full paths are:

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

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