Mendeley’s LibreOffice Plugin is not installing

I have not been able to install the Mendeley’s LibreOffice Plugin.
It shows the following error message:

Couldn't Install LibreOffice Plugin The LibreOffice unopkg utility gave the following output: javaldx: Could not find a Java Runtime Environment! Please ensure that a JVM and the package libreoffice-java-common is installed. If it is already installed then try removing ~/.config/libreoffice/4/user/config/javasettings_Linux_*.xml ERROR: (com.sun.star.deployment.DeploymentException) { { Message = "Error binding package: vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu4230mffxxr.tmp_/Mendeley-1.19.8.oxt", Context = (com.sun.star.uno.XInterface) @55cc9d9d01d0 (ImplementationName = "com.sun.star.comp.deployment.bundle.PackageRegistryBackend") }, Cause = (any) { (com.sun.star.ucb.InteractiveAugmentedIOException) { { { { Message = "an error occurred during file opening", Context = (com.sun.star.uno.XInterface) @55cc9d9fd728 (ImplementationName = "com.sun.star.comp.ucb.FileContent") }, Classification = (com.sun.star.task.InteractionClassification) ERROR }, Code = (com.sun.star.ucb.IOErrorCode) NOT_EXISTING }, Arguments = ([]any) { { (com.sun.star.beans.PropertyValue) { Name = "Uri", Handle = (long) -1, Value = (any) { "file:///home/felipe/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu4230mffxxr.tmp_/Mendeley-1.19.8.oxt" }, State = (com.sun.star.beans.PropertyState) DIRECT_VALUE } }, { (com.sun.star.beans.PropertyValue) { Name = "ResourceName", Handle = (long) -1, Value = (any) { "/home/felipe/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu4230mffxxr.tmp_/Mendeley-1.19.8.oxt" }, State = (com.sun.star.beans.PropertyState) DIRECT_VALUE } } } } } } ERROR: Exception occurred: Error binding package: vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu4230mffxxr.tmp_/Mendeley-1.19.8.oxt ERROR: unopkg failed.

[Edit Opaque] - put error message into “pre-formatted text” format

Please ensure that a JVM and the package libreoffice-java-common is installed

  • Have you ensured that?
  • Which GNU/Linux distribution are you using?
  • May be you need to delete $HOME/.config/libreoffice/4/user/uno_packages/cache/*
  • Try to install Mendeley-1.19.8.oxt directly from ..Mendeley Desktop\openOfficePlugin\Mendeley-1.19.8.oxt using LibreOffice’s extension manager and Add button (Do not use some functionality from Mendeley desktop).

No, I have not ensured it because I don’t no how to do it.
I use Ubuntu 20.04.2 LTS.

Open a terminal and execute dpkg --list | awk '/ii/&&/libreoffice-java-common/', which should look similar to

user@system:~$ dpkg --list | awk '/ii/&&/libreoffice-java-common/'
ii  libreoffice-java-common                       1:7.1.1~rc2-0ubuntu0.20.04.1~lo1            all          office productivity suite -- arch-independent Java support files

If there is no output, execute sudo apt install libreoffice-java-common --yes