-
Install the
libreoffice
package, for example, by running the following command:`$ sudo apt-get install libreoffice`
- In the cuba.reporting.openoffice.path application property, specify the path to LibreOffice:
cuba.reporting.openoffice.path = /usr/lib/libreoffice/program
- If the server does not have window interface installed, LibreOffice will start with the error,
Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it
, or will simply terminate without error messages. To resolve this, set the cuba.reporting.displayDeviceUnavailable application property:
cuba.reporting.displayDeviceUnavailable = true
- You can run the following command to diagnose errors when starting LibreOffice:
$ strace -e trace=signal /usr/lib/libreoffice/program/soffice.bin --headless --accept="socket,host=localhost,port=8100;urp"
--nologo --nolockcheck