opj_viewer_xerces: 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/opj_viewer_xerces - from package: openjpip-viewer-xerces

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