pamtojpeg2k: 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 CentOS possible default full paths are:

/usr/bin/pamtojpeg2k - from package: netpbm-progs

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