java-rmi.cgi: 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/lib/jvm/java-7-openjdk-amd64/bin/java-rmi.cgi - from package: openjdk-7-jre-headless

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