groovyConsole: 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

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

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