dongqiongjiong4740 2015-06-26 10:47 采纳率: 0%
浏览 107
已采纳

生成pdf时出错

I am developing a website in symfony framework. I have generate pdf successfully using SpraedPDFGeneratorBundle. In My localhost everything working fine. When i check this on server I got error.

The exit status code '127' says something 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.
  • 写回答

1条回答 默认 最新

  • dpuwov1487 2015-06-26 10:51
    关注

    Ensure that your environment variable "java" is set. The error suggests, that java cannot be found.

    To check if java is installed type java --version in your command line interface.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?