LibreOffice plugin installation issue in ubuntu 24.04

Hi
I install latest version of zotero from flathub on my ubuntu 24.04 PC. In app when I click on Install LibreOffice Add-in nothing happens. So I download zotero 7 zip file and extract the extension to install manually. When I click on the .oxt file the following error apears:

(com.sun.star.uno.RuntimeException) {{Message = "[JavaVirtualMachine]: An unexpected error occurred while searching for a Java, 11, at ./stoc/source/javavm/javavm.cxx638", Context = (com.sun.star.uno.Xinterface)@0}}

I found this article https://forums.zotero.org/discussion/106977/libreoffice-plugin-installation-issue-unexpected-error-while-searching-for-java but I don't know how to solve this. Please help me.
Thanks
  • edited August 17, 2024
    I manually install jdk-22_linux-x64_bin.deb and openjdk from repos but nothing changed.

    “Use a Java runtime environment” is checked but nothing in the list below and I can't select any folder for that.
  • I had this problem too! I realized the flatpak install does not include the open office integration libraries or other essential folders. Also when I downloaded and tried to install from source, Zotero wouldn't run. So I downloaded and installed from source in another directory, then copied all the files in that directory over to where the Flatpak installed, augmenting the list of directories there. Then it had access to the open office libraries necessary to install the connector.
  • edited August 18, 2024
    Thanks a lot. It's solved!
    I download tar.gz file from zotero website and extract it in /opt/zotero. I create Symlink in ~/.local/share/applications/zotero.desktop.
    Also I install libreoffice-java-common (sudo apt install libreoffice-java-common) from ubuntu repository.
    Then I start zotero and install libreoffice Add-in. Then it works!
    no need to use flatpak anymore
  • I create symlink manually:
    [Desktop Entry]
    Name=Zotero
    Exec=bash -c "/opt/zotero/zotero -url %U"
    Icon=/opt/zotero/icons/icon128.png
    Type=Application
    Terminal=false
    Categories=Office;
    MimeType=text/plain;x-scheme-handler/zotero;application/x-research-info-systems;text/x-research-info-systems;text/ris;application/x-endnote-refer;application/x-inst-for-Scientific-info;application/mods+xml;application/rdf+xml;application/x-bibtex;text/x-bibtex;application/marc;application/vnd.citationstyles.style+xml
    X-GNOME-SingleWindow=true
Sign In or Register to comment.