update-java-alternatives: 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/sbin/update-java-alternatives - from package: java-common

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