tos-locate-jre: 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/bin/tos-locate-jre - from package: tinyos-tools

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