Libreoffice integration: JNI error under debian

Hi all,

I am having difficulties to install the libreoffice integration in
debian 11.

I've had it installed and usable for quite some time but today the
buttons were dead. Thus, I assume this is a debian upgrade triggered
error. So I removed the libreoffice extension. But I cannot
re-install it anymore.


I am seeing the JNI-error on manual installation of the extension [1]. But the usually
suggested solution [2] to make libreoffice aware of the installed JRE does
not help, as the JRE (11.0.13) is already selected in
Tools->Options->Libreoffice->Advanced.

Also, deleting libreoffice's data folder does not help: I see the same
error after `rm -r ~/.config/libreoffice`.

libreoffice-java-common is installed [3].

Any help on how to get the libreoffice-zotero-integration installed is
highly appreciated.

Many thanks in advance


PS: The system:
Debian GNU/Linux 11 (bullseye)
libreoffice Version: 1:7.0.4-4+deb11u1
Zotero Version: 5.0.96.3
JRE: openjdk-11-jre Version: 11.0.13+8-1~deb11u1




[1]
(com.sun.star.uno.RuntimeException) { { Message = "JNI exception
occurred ./stoc/source/javavm/javavm.cxx:1592", Context =
(com.sun.star.uno.XInterface) @7facb8001c68 (ImplementationName =
"com.sun.star.comp.stoc.JavaVirtualMachine") } }


[2]

https://www.zotero.org/support/word_processor_plugin_troubleshooting#jni_exception


[3]

> aptitude show libreoffice-java-common
Package: libreoffice-java-common
Version: 1:7.0.4-4+deb11u1
State: installed
Automatically installed: no
Priority: optional
Section: editors
Maintainer: Debian LibreOffice Maintainers
Architecture: all
Uncompressed Size: 1,052 k
Depends: libjuh-java, libjurt-java, liblibreoffice-java, libreoffice-common, libridl-java, libunoil-java, libunoloader-java
Breaks: libunoil-java (< 1:6.4.0~rc1-6)
Replaces: libunoil-java (< 1:6.4.0~rc1-6)
Description: office productivity suite -- arch-independent Java support files
LibreOffice is a full-featured office productivity suite that provides a near drop-in replacement for Microsoft(R) Office.

This package contains the architecture-independent files of the Java support for LibreOffice (Java classes, scripts, config snippets).
Homepage: http://www.libreoffice.org
Tags: devel::lang:java, devel::library, implemented-in::java, role::devel-lib, role::shared-lib
  • edited November 27, 2021
    If possible, you should try using a newer version of LibreOffice (e.g., 7.2). Zotero worked with LO 7.0 in general, but there's no real point trying to debug an outdated version.
  • I have solved my problem. Re-installing libreoffice has enabled me to install the libreoffice integration.

    I removed/purged all libreoffice-related packages until
    `aptitude search libreoffice | grep "^i"`
    did not return anything anymore.

    Then I re-installed libreoffice via
    `apt-get install libreoffice`.
Sign In or Register to comment.