# Xubuntu 18.04 LTS, Jabref, Libreoffice - Connection Fails

**URL:** <https://discourse.jabref.org/t/xubuntu-18-04-lts-jabref-libreoffice-connection-fails/1761>\
**Category:** Help\
**Created:** [October 2, 2019, 6:37am UTC](https://discourse.jabref.org/t/xubuntu-18-04-lts-jabref-libreoffice-connection-fails/1761 "2019-10-02T06:37:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kzmrz](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kzmrz](https://discourse.jabref.org/u/kzmrz)\
**Post date:** [October 2, 2019, 6:37am UTC](https://discourse.jabref.org/t/xubuntu-18-04-lts-jabref-libreoffice-connection-fails/1761/1 "2019-10-02T06:37:02Z")

</div>

Hi, Trying to use the above combination and the connection between Jabref and Libreoffice does not work.

The version of Libreoffice came with the distribution, that is, I did not install it. It is version 6.0.7.3.

I installed Jabref myself with _sudo apt-get install jabref_. The installed version is 3.8.2.

The output of java -version is

openjdk version “11.0.4” 2019-07-16  
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)  
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

More Details.

16:20:45.559 [AWT-EventQueue-0] INFO net.sf.jabref.logic.importer.OpenDatabase - Opening: /home/kevin/Documents/HDR/Program/CSCI991-Project/Spring2018Project.bib  
16:20:52.639 [AWT-EventQueue-0] WARN net.sf.jabref.gui.openoffice.OpenOfficePanel - Could not connect to running OpenOffice/LibreOffice  
java.io.IOException: File not found: /usr/lib/libreoffice/program/classes/program/classes/unoil.jar  
at net.sf.jabref.gui.openoffice.OpenOfficePanel.connect(OpenOfficePanel.java:415) [JabRef-3.8.2.jar:?]  
at net.sf.jabref.gui.openoffice.OpenOfficePanel.lambda$initPanel$1(OpenOfficePanel.java:142) [JabRef-3.8.2.jar:?]  
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) [?:?]  
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) [?:?]  
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) [?:?]  
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) [?:?]  
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) [?:?]  
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) [?:?]  
at java.awt.Component.processMouseEvent(Component.java:6632) [?:?]  
at javax.swing.JComponent.processMouseEvent(JComponent.java:3342) [?:?]  
at java.awt.Component.processEvent(Component.java:6397) [?:?]  
at java.awt.Container.processEvent(Container.java:2263) [?:?]  
at java.awt.Component.dispatchEventImpl(Component.java:5008) [?:?]  
at java.awt.Container.dispatchEventImpl(Container.java:2321) [?:?]  
at java.awt.Component.dispatchEvent(Component.java:4840) [?:?]  
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) [?:?]  
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) [?:?]  
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) [?:?]  
at java.awt.Container.dispatchEventImpl(Container.java:2307) [?:?]  
at java.awt.Window.dispatchEventImpl(Window.java:2772) [?:?]  
at java.awt.Component.dispatchEvent(Component.java:4840) [?:?]  
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) [?:?]  
at java.awt.EventQueue$4.run(EventQueue.java:721) [?:?]  
at java.awt.EventQueue$4.run(EventQueue.java:715) [?:?]  
at java.security.AccessController.doPrivileged(Native Method) [?:?]  
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?]  
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) [?:?]  
at java.awt.EventQueue$5.run(EventQueue.java:745) [?:?]  
at java.awt.EventQueue$5.run(EventQueue.java:743) [?:?]  
at java.security.AccessController.doPrivileged(Native Method) [?:?]  
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?]  
at java.awt.EventQueue.dispatchEvent(EventQueue.java:742) [?:?]  
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]  
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]  
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]  
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]  
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]  
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]

The exception …

java.io.IOException: File not found: /usr/lib/libreoffice/program/classes/program/classes/unoil.jar

… is odd because the library path in the settings is /usr/lib/libreoffice/program/classes. Don’t know where the extra /program/classes comes from?

Also, the file unoil.jar does exist in /usr/lib/libreoffice/program/classes as a link.

Any help would be appreciated.

Thanks.

K.

---

<div class="post-metadata">

**Author:** ![tobiasdiez](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/tobiasdiez/32/340_2.png) [@tobiasdiez](https://discourse.jabref.org/u/tobiasdiez)\
**Post date:** [October 3, 2019, 7:54am UTC](https://discourse.jabref.org/t/xubuntu-18-04-lts-jabref-libreoffice-connection-fails/1761/2 "2019-10-03T07:54:23Z")

</div>

> [@kzmrz](#):
>
> File not found: /usr/lib/libreoffice/program/classes/program/classes/unoil.jar

Looks like `libreoffice-java-common` is missing.

The following discussion might also help: [Connecting with LibreOffice Snap under Ubuntu 16.04 - #9 by Alessander](http://discourse.jabref.org/t/connecting-with-libreoffice-snap-under-ubuntu-16-04/980/9)

---

<div class="post-metadata">

**Author:** ![kzmrz](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kzmrz](https://discourse.jabref.org/u/kzmrz)\
**Post date:** [October 3, 2019, 8:13am UTC](https://discourse.jabref.org/t/xubuntu-18-04-lts-jabref-libreoffice-connection-fails/1761/3 "2019-10-03T08:13:09Z")

</div>

Thanks for your note.

I believe libreoffice-java-common is present.

Output of _ **apt list --installed** _ includes the following …

libreoffice-java-common/bionic-updates,bionic-updates,bionic-security,bionic-security,now 1:6.0.7-0ubuntu0.18.04.10 all [installed]

Regards.

K.

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [October 3, 2019, 6:20pm UTC](https://discourse.jabref.org/t/xubuntu-18-04-lts-jabref-libreoffice-connection-fails/1761/4 "2019-10-03T18:20:37Z")

</div>

Hi,

you are using an old version of JabRef.

Please try the latest version from here:  
[https://builds.jabref.org/master/](https://builds.jabref.org/master/)

---

<div class="post-metadata">

**Author:** ![kzmrz](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kzmrz](https://discourse.jabref.org/u/kzmrz)\
**Post date:** [October 4, 2019, 11:26am UTC](https://discourse.jabref.org/t/xubuntu-18-04-lts-jabref-libreoffice-connection-fails/1761/5 "2019-10-04T11:26:42Z")

</div>

Thanks. Works ok now.

K.
