php - Giving error while genrating pdf -
i developing website in symfony framework. have generate pdf using spraedpdfgeneratorbundle
. in localhost working fine. when check on server got error.
the exit status code '127' says went wrong:
stderr: "sh: java: command not found" stdout: "" command: java -djava.awt.headless=true -jar "/home/bwcmm/public_html/ps/drp/vendor/spraed/pdf-generator-bundle/spraed/pdfgeneratorbundle/resources/java/spraed-pdf-generator.jar" --html "/tmp/tmp558d2d71e4d98." --pdf "/tmp/output558d2d71e3a1a.pdf" --encoding utf-8.
please help.
ensure environment variable "java" set. error suggests, java cannot found.
to check if java installed type java --version
in command line interface.
Comments
Post a Comment