antenv.cmd: 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/antenv.cmd - 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/antenv.cmd - from package: eclipse-platform-data
/usr/share/eclipse/plugins/org.apache.ant_1.8.3.v20120321-1730/bin/antenv.cmd - from package: eclipse-platform-data

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