I have a web server configured on my laptop. I am creating a web application that I access through a local network. I have a php file that 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 running the above code in the php terminal it works fine. But when accessed via a web browser, the output is simply empty, and the conversion is not performed as intended.
The Apache error log shows the following lines:
[Java framework] Error in the createSettingsDocument (elements.cxx) function.
javaldx failed!
Warning: could not read the path from javaldx
I tried the solutions from https://wiki.archlinux.org/index.php/Libreoffice#Fixing_Java_Framework_Error . But that did not work.
I am using OpenJDK 7.
Does anyone have any ideas on how to make this work?
ubuntu openjdk libreoffice
Gaurav singh
source share