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

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