Run a java program that uses LibreOffice Java API to convert a doc into pdf file using a Bash script on the Linux terminal and I am getting this error. Any idea how to resolve it?
FYI, Using Eclipse I am able to run the program successfully.
But using a Bash script to run the program on the Linux terminal, I am getting this error below.
CE> /usr/lib64/libreoffice/program/soffice: line 54: dirname: command not found
CE> /usr/lib64/libreoffice/program/soffice: line 124: grep: command not found
CE> /usr/lib64/libreoffice/program/soffice: line 130: uname: command not found
CE> /usr/lib64/libreoffice/program/soffice: line 161: /home/Programs/ACS2CC_Print2PDF_Integration/oosplash: No such file or directory