startGroovy: 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/startGroovy - from package: groovy2
/usr/share/groovy/bin/startGroovy - from package: groovy

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