java2groovy: 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 Debian possible default full paths are:

/usr/share/groovy2/bin/java2groovy - from package: groovy2
/usr/share/groovy/bin/java2groovy - from package: groovy

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