LibreOffice plugin installation error: MalformedVersionException
dstillman
Zotero Team
This discussion was created from comments split from: Error plugin installation LibreOffice.
Upgrade Storage
I tried to install it manually and also got errors.
Bug report: 96530395
Here is some additional info. When I try to install manually, I get this notice:
You are about to install version 5.0.23 of the extension 'Zotero LibreOffice
Integration'.
That version is already installed.
Click 'OK' to replace the installed extension.
Click 'Cancel' to stop the installation.
When I go ahead and click OK, I get this error from the LO extension manager:
(com.sun.star.uno.RuntimeException) { { Message = "C++ code threw
N10jfw_plugin25MalformedVersionExceptionE: std:: exception", Context
(com.sun.star.uno.XInterface) @0 }}
Here is the error that is generated by the Zotero error reporter:
DavaScript Error:
"TypeError: temp is null" (file: "chrome: / / zotero/content/bindings/preferences-mac.xml"line:1225}]
getPreferenceElement@chrome://zotero/content/bindings/preferences-mac.xml:1225:11
userChangedValue@chrome:/zotero/content/bindings/preferences-mac.xml:1273:25
onxblcommand@chrome://zotero/content/bindings/preferences-mac.xml:1312:0
JavaScript Error: "uncaught exception: unopkg at /Applications/LibreOffice.app/Contents/MacOS/unopkg failed to install"]
JavaScript Error: "TypeError: temp is null" (file: "chrome: / / zotero/content/bindings/preferences-mac.xm/"line:1225]
getPreferenceElement@chrome://zotero/content/bindings/preferences-mac.xml:1225:11
userChangedValue@chrome:/zotero/content/bindings/preferences-mac.xml:1273:25
onxblcommand@chrome:/zotero/content/bindings/preterences-mac.xml:1312:9
JavaScript
Error: "uncaught exception: unopkg at /Applications/LibreOffice.app/Contents/MacOS/unopkg failed to install"]
version =
6.0.8, platform => Maclntel, oscpu => Intel Mac OS X 10.16, locale => en-US, appName => Zotero, appVersion => 6.0.8. extensions => Zotero LibreOffice
Integration (6.0.0.SA.6.0.8, extension), Zotero Word for Mac Integration (6.0.2.SA.6.0.8, extension)
JDK 17 will work with LO, but not with Zotero and LO. Need to roll back to JDK 16
Nothing to do with Zotero. It’s just an LO bug. You’d just only see it when trying to use a Java-based extension.
Something that would help in the very useful trouble shooting page would be instructions on how to install any version of Java that is earlier than the current Oracle version that is packaged with an installer, and how to set it in LO. Here are some draft instructions if you'd like to add them.
To set your version to LibreOffice to work with a specific version of a Java Runtime Environment (JRE) on the Mac, do the following (requires admin privileges):
1. Download the desired version of JRE from https://jdk.java.net/archive/ and uncompress it to a folder.
2. On your Mac, open the the folder:
/Library/Java/JavaVirtualMachines
You can do this by selecting the Finder "Go to Folder" option from the "Go" menu and pasting/typing /Library/Java/JavaVirtualMachines into the text box.
3. Drag your uncompressed JRE folder into the /Library/Java/JavaVirtualMachines folder (You will need to supply an admin password to do this).
4. Start LibreOffice and open Preferences.
5. In Preferences, select LibreOffice/Advanced. Then select the version of JRE you want to use.
6. Close Preferences and close LibreOffice
7. Install the LibreOffice/OpenOffice plugin from Zotero.