Hi,
you might need to install the java extension libraries first:
sudo apt-get install libreoffice-java-common
the default folders for LO configuration are both under /usr/lib:
/usr/lib/libreoffice/program/soffice
/usr/lib/libreoffice
And you first have to start LIbreOffice Writer to sucessfully connect.