groovydoc: 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/groovydoc - from package: groovy2

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