I’m trying to connect JabRef to a LibreOffice (LO) Writer file. I was able to before but can’t now–I think because I’m now using the LO snap under Ubuntu.
Trying to connect automatically fails.
Trying to manually with these settings (while a LO Writer file is indeed running and after installing libreoffice-java-common):
Path to OpenOffice executable: /snap/libreoffice/44/lib/libreoffice/program/soffice
Path to OpenOFfice library dir: /snap/libreoffice/44/lib/libreoffice/program/classes
Also fails, generating this error message:
Could not connect to running OpenOffice.
Make sure you have installed OpenOffice with Java support.
If connecting manually, please verify program and library paths.
Error message: File not found: /snap/libreoffice/44/lib/libreoffice/program/classes/program/classes/unoil.jar
Given that it somehow replicates “program/classes/” in its search, I tried using, e.g., “/snap/libreoffice/44/lib/libreoffice” (and similar options) as the path to .jar files instead to no avail.
Does anyone have any idea how to establish an OpenOffice/LibreOffice connection under these circumstances?
Thank you in advance.
More info:
Using this build of LO:
Version: 5.4.3.2
Build ID: libreoffice-5.4.3.2-snap1
CPU threads: 8; OS: Linux 4.10; UI render: default; VCL: gtk3;
Your JabRef is very much outdated. Version 2.10 was released a few years ago and in the meantime we are already at 4.1. You can download the new version on fosshub and then probably need to install openjfx to run it.
Hopefully the upgrade to the newer JabRef version already fixes your problem.
I installed and ran both JabRef v 4.1 by following your instructions, i.e., first downloading the latest version of Java from fosshub.com then running:
I also installed the JabRef snap (v 4.0-dev) with:
sudo snap install jabref --edge --devmode
Running either instance of JabRef made the error returned by JabRef change to be the slightly-more-optimistic:
Could not connect to running OpenOffice/LibreOffice.
Make sure you have installed OpenOffice/Libreoffice with Java support.
If connecting manually, please verify program and library paths.
Error message: (Not all) required Open Office Jars were found inside the installation path.
(The paths are the same as I noted before; changing the library dir path to /snap/libreoffice/44/usr/lib/jvm/java-8-openjdk-amd64/jre didn’t change the error.)
Making me suspect that updating JabRef indeed helped, but that my particular issue is with Java (or possibly the paths to LO and the libraries).
thanks for your report! I could reproduce your error and my guess is that it’s due to the snap installation of libreoffice. Maybe @koppor can add more details on the snap access controls here.
and then installing LO via the Ubuntu Software app.
I think the issue (for me?) may be finding the LO executable (the soffice file) and library dir. After removing the snap version of LO and installing the “fresh” version from the software center, a soffice file is located in two places under /usr:
libreoffice-java-common is still required, even though the required jar files ("unoil.jar", “jurt.jar”, “juh.jar”, and “ridl.jar”) were in /snap/libreoffice/65/lib/libreoffice/program/classes. So, setting the manual connection to this folder is useless. I had to do: