KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a web server set up on my laptop. I am building a web application which I am accessing through the local network. I have a php file which contains the following lines: $command = "/usr/bin/oowriter --invisible --convert-to pdf /var/www/hackathon/document/gaurav.doc -outdir /var/www/hackathon/pdf/" exec($command, $output, $return_var); print_r($output); So, the problem is that when I run the above code in the terminal php runs perfectly. But when accessed via a web browser, output is just empty and no conversion is done as intended. Apache error log shows the following lines: [Java framework] Error in function createSettingsDocument (elements.cxx). javaldx failed! Warning: failed to read path from javaldx I have tried solutions from https://wiki.archlinux.org/index.php/Libreoffice#Fixing_Java_Framework_Error . But it didn't work. I am using OpenJDK 7. Does anybody have any idea on how to make this work?
Tags (comma-separated)
Save Edits
Cancel