Bug#895440: Unable to connect to libreoffice

tony mancill tmancill at debian.org
Mon Aug 12 05:11:49 BST 2019


On Sat, Aug 10, 2019 at 08:54:51AM -0700, tony mancill wrote:
> On Wed, Aug 07, 2019 at 02:14:04AM +0200, gregor herrmann wrote:
> > So yeah. there is an issue; and this has worked the last time I tried
> > it … Maybe some change in OpenJDK? -- This needs further
> > investigation.
> 
> Thank you both for reporting and confirming the issue.  I will take a
> look this weekend.

This is definitely due to a change in how classloaders work in Java
after Java 8.  You can refer to this thread for more information:

  https://community.oracle.com/thread/4011800

I spent a little time working on a patch for JabRef to use the

  Class.forName("foo", true, new URLClassLoader(URL[] bar));

pattern if the ClassLoader returned from the system isn't an instance of
URLClassLoader, which addresses the first stacktrace reported, but there
are (at least) two more that need to be addressed in the JabRef sources.

So for the time-being, I recommend installing openjdk-8-jre and starting
jabref like so:

JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 jabref

Running on Java 8, I was able to manually connect to LibreOffice using
the parameters:

  Path to OpenOffice/LibreOffice executable:  /usr/bin/libreoffice
  Path to OpenOffice/LibreOffice library dir:  /usr/lib/libreoffice

I might continue to work on a patch for this, but even the latest
upstream version 4.3.1 doesn't run on Java 11 yet, so I'm reluctant to
invest too much in a hack that needs to be reworked upstream.

Regards,
tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20190811/f800cec8/attachment.sig>


More information about the pkg-java-maintainers mailing list