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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -