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

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