LIbreoffice Mac Java problem (report 317404381)
Hi I am trying to install Zotero add in my LibreOffice 7.0 under MacOS Catalina -10.15.6 (19G2021)
The is a number of errors going on.
First as I try to install the following error message pops up:
"An Error occured during the instalation" and the following error report is created:
----
[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/LibreOffice.app/Contents/MacOS/unopkg failed to install"]
version => 5.0.89, platform => MacIntel, oscpu => Intel Mac OS X 10.15, locale => en-GB, appName => Zotero, appVersion => 5.0.89, extensions => ZotFile (5.0.16, extension), Zotero Memento (1.0.0, extension), Zotero Report Customizer (5.0.34, extension), Zutilo Utility for Zotero (3.5.0, extension), Zotero LibreOffice Integration (5.0.23.SA.5.0.89, extension), Zotero Word for Mac Integration (5.0.27.SA.5.0.89, extension), Better BibTex for Zotero (5.2.54, extension)
----
Then, When I try to run LibreOffice the following message pops up:
-----
LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective.
-----
When I Actually open LibreOffice there is a tool bar for Zotero but:
1 .There are no icons, they are in text mode
2. It does not work at all
Thanks
The is a number of errors going on.
First as I try to install the following error message pops up:
"An Error occured during the instalation" and the following error report is created:
----
[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/LibreOffice.app/Contents/MacOS/unopkg failed to install"]
version => 5.0.89, platform => MacIntel, oscpu => Intel Mac OS X 10.15, locale => en-GB, appName => Zotero, appVersion => 5.0.89, extensions => ZotFile (5.0.16, extension), Zotero Memento (1.0.0, extension), Zotero Report Customizer (5.0.34, extension), Zutilo Utility for Zotero (3.5.0, extension), Zotero LibreOffice Integration (5.0.23.SA.5.0.89, extension), Zotero Word for Mac Integration (5.0.27.SA.5.0.89, extension), Better BibTex for Zotero (5.2.54, extension)
----
Then, When I try to run LibreOffice the following message pops up:
-----
LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective.
-----
When I Actually open LibreOffice there is a tool bar for Zotero but:
1 .There are no icons, they are in text mode
2. It does not work at all
Thanks
https://www.zotero.org/support/word_processor_plugin_troubleshooting#installation_error
You should install the JRE from my link above — Java 8 — and select that in LO. Later JDK versions may not work with LO 7. This has nothing to do with Zotero.
The Java 8 JRE is working fine for us in LO 7. But again, this isn't a Zotero problem — if LO won't recognize your Java install, that's obviously not something we can fix — so if you're having trouble you'd have to ask LO for help.
In the meantime, you can just reinstall LibreOffice 6 until you and the LibreOffice folks can figure out why it's rejecting your Java installation.
On Windows, the Java 8 JRE works fine.
So, currently, you should install JDK 12 on macOS if you want to use the LO plugin.
Sorry for the confusion.
Tried again with JDK 12 and JDK 11, neither of them seems to wok, as the same error message poped up.
I feel sorry because users might not be able to stick to older versions forever.
Thanks
Can you take a screenshot of the Advanced pane of the LO prefs with JDK 12, upload it somewhere (e.g., Dropbox), and provide a link here? You can also email to support@zotero.org with a link to this thread if that's easier.
I made a small video trying all versions of JDK and Java. The link expires in 7 days time:
https://we.tl/t-vKH1pPMxLj
If I uninstall LO 7 and use a earlier version it works out of the box.
Second, I believe the LibreOffice developers have fixed the incompatibility between LO 7 and more recent JDK versions for LO 7.1, so once that's out this should work better. I haven't tested the LO nightlies to confirm that.