Zotero plugin fails with LibreOffice 7.0
Just downloaded LibreOffice 7 (7.0.0) and tried to have zotero install plugin. Install failed.
Reported to devs as Report ID 376333042.
LO7 identified Oracle Java 14 and 14.0.1 as "defective" (though they work fine with LO6.x) - might that may have something to do it...
[JavaScript 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:9
[JavaScript Error: "uncaught exception: unopkg at /Applications/LibreOffice7.app/Contents/MacOS/unopkg failed to install"]
version => 5.0.89, platform => MacIntel, oscpu => Intel Mac OS X 10.15, locale => en-US, appName => Zotero, appVersion => 5.0.89, extensions => ZotFile (5.0.16, extension), Zutilo Utility for Zotero (3.5.0, extension), Zotero Word for Mac Integration (5.0.27.SA.5.0.89, extension), Zotero LibreOffice Integration (5.0.23.SA.5.0.89, extension), Shockwave Flash (32.0.0.403, plugin)
Reported to devs as Report ID 376333042.
LO7 identified Oracle Java 14 and 14.0.1 as "defective" (though they work fine with LO6.x) - might that may have something to do it...
[JavaScript 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:9
[JavaScript Error: "uncaught exception: unopkg at /Applications/LibreOffice7.app/Contents/MacOS/unopkg failed to install"]
version => 5.0.89, platform => MacIntel, oscpu => Intel Mac OS X 10.15, locale => en-US, appName => Zotero, appVersion => 5.0.89, extensions => ZotFile (5.0.16, extension), Zutilo Utility for Zotero (3.5.0, extension), Zotero Word for Mac Integration (5.0.27.SA.5.0.89, extension), Zotero LibreOffice Integration (5.0.23.SA.5.0.89, extension), Shockwave Flash (32.0.0.403, plugin)
If you're just trying to get the plugin working, though, and don't need Java for anything else, I'd switch to the default Java 8 JRE.
Have reported to LO but don’t expect much in the way of response. LO thinks they have solved all Java issues :-(
As 8 presented security issues I went ahead in LO6.x and moved to Oracle Java with no problems.
I just posted here in case other Zotero users who updated their java planned on moving to LO7
I am going to try a few things and will update this thread if I have any success
Maybe I felt pressured by the repeated statements that 8 would no longer be supported?
For those concerned, I installed Oracle Java 12.0.2 from the archive and LO7.0.0 recognized and used this java. Other users have noted that OpenJava 12 also works.
So, it would seem that the issue may well be that someone tweaked the code that first checks java when LO7 comes up and I have requested that the bug be assigned to whomever last touched that code as I am hoping it is a very simple fix.
In the meantime, LO users who were using Java 14 can install java 12 to work with it pending a fix
On Windows, the Java 8 JRE works fine.
So, as @netbuoy said, you should install JDK 12 for now if you want to use the LO plugin on macOS.
Sorry for the confusion.
Yes. Two separate issues, one having to do with where the JDK is located (JRE not adequate) that can be found at https://bugs.documentfoundation.org/show_bug.cgi?id=135462 and one that addressing failure to source JDK 14 which is found at https://bugs.documentfoundation.org/show_bug.cgi?id=135479 . Both have been fixed. The fixes will appear in LO 7.1
After `sudo apt install libreoffice-java-common` JRE appeared in LO/Tools menu/Options.../Advanced.
I have also added JAVA_HOME global variable and prepended $JAVA_HOME/bin to the $PATH, but is not necessary if one use new Java version.