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

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