Can't install extension for LibreOffice
Hi,
I just installed LibreOffice 5 on my Windows 7 laptop. Next I installed Zotero standalone. Now I am trying to get the Zotero extension installed for LibreOffice but having no luck. I keep getting the message:
Zotero OpenOffice.org/NeoOffice/LibreOffice Integration requires the Java Runtime Environment. Visit Java.com to download it.
First the link to Java.com in that message goes nowhere. So I went to an Oracle website and downloaded the latest JRE. Then I went to LibreOffice/Tools/Options/Advanced, Use a JRE check box is checked, it says a JRE is already installed, shows version 1.8.0_60.
I've restarted my machine, and still same result. Why can't I get zotero working with LibreOffice?
Thanks for any help.
I just installed LibreOffice 5 on my Windows 7 laptop. Next I installed Zotero standalone. Now I am trying to get the Zotero extension installed for LibreOffice but having no luck. I keep getting the message:
Zotero OpenOffice.org/NeoOffice/LibreOffice Integration requires the Java Runtime Environment. Visit Java.com to download it.
First the link to Java.com in that message goes nowhere. So I went to an Oracle website and downloaded the latest JRE. Then I went to LibreOffice/Tools/Options/Advanced, Use a JRE check box is checked, it says a JRE is already installed, shows version 1.8.0_60.
I've restarted my machine, and still same result. Why can't I get zotero working with LibreOffice?
Thanks for any help.
You'd need the 32-bit version of Java, did you install that? 64-bit won't work.
I first installed the 64-bit version of Java SE from Oracle and then the 32-bit version from Java.com. The former did not work, the latter did.
Windows 7 (64), Zotero Standalone 4.0.28.7, Firefox 42.0, JRE 32-bit v8 update 65, LibreOffice (5.03, uninstalled, installed 4.4)
Installation sequence: Zotero Standalone (long time), then installed LibreOffice 5.03, then updated Java, then reinstalled LibreOffice 5, then deleted LibreOffice folder in appdata/roaming/, then uninstalled LibreOffice 5 and installed LibreOffice 4.4.
After all that (and after every individual step), I still get the error "Zotero OpenOffice.org/NeoOffice/LibreOffice Integration requires the Java Runtime Environment".
What next?
@zuphilip: Thank you. That was exactly what Zotero deemed that I needed. I installed both Java 64-bit and LibreOffice 5 64-bit, pointed LibreOffice | Tools | Options | Advanced to the right Java folder (in Program Files, NOT Program Files (x86), and Zotero finally recognized LibreOffice.
I appreciate both of your help.
Windows 10 64 bit, LibreOffice 5.2x (32-bit) UNINSTALLED, LibreOffice 5.2.3.3 (x64) INSTALLED, both JRE1.8.0_111 64- and 32-bit (64-bit selected currently), Firefox 50.0, Zotero Standalone 4.0.29.10, Zotero LibreOffice Integration 3.5.9.
My problem: the Zotero Toolbar shows up in LibreOffice. The Insert Bibliography button seems to be working, but the Add Citation and Set Preferences buttons just sit there when I click one of them.
I had problems with 32-bit LibreOffice/32-bit Java, so I uninstalled that and installed 64-bit LibreOffice.
I've tried disabling, removing, adding back the Zotero extension both from within LibreOffice and from within Zotero. I've rebooted, reinstalled LibreOffice, etc.
If I try installing the Zotero plug-in while (64-bit) LibreOffice points to the 32-bit JRE, I get the error message. If I try while LibreOffice points to the 64-bit JRE, I get no error message, but still the Add button doesn't respond.
@zuphilip: I appreciate the documentation you added at ftp://www.daba.lv/pub/RakstuDarbi/atsauces/Zotero/Zotero_and_Java.htm. I have followed all your instructions without success. One thing I haven't been successful at is finding Zotero LibreOffice Integration 3.5.10 for Standalone. For Firefox, yes, but not Standalone. I don't know if that would make a difference.
Update: Because I couldn't find a later LibreOffice plug-in for Standalone than 3.5.9, I installed Zotero Firefox (latest version) and tried to update the plug-in to 3.5.12. Firefox said the installation was successful, but after both double-clicking on the Extension from Explorer, and re-installing from within Z4Firefox, LibreOffice still shows the Extension as 3.5.9. (Zotero unhelpfully does not show what version the plug-in is.)
I moved away from MS Word because their Styles are a nightmare. Now must I move away from LibreOffice because Zotero is a nightmare?
Help!
Forget about the 3.5.9/3.5.12 difference -- that's just on the Firefox side to ensure compatibility with newer FF versions, there are no changes in LibreOffice extension.
'Insert bibliography' works fine. This assumes, of course, that I'm in a document where I inserted references before Zotero broke. In a new document, I can't insert references so I get an error message "You must insert a citation before performing this operation."
One thing to check would be if for some weird reason the add-on bar appears behind other windows -- circle through all your windows after clicking the insert citation button (the add citation window will show up as a Firefox/Zotero window).
If that doesn't help, could we get an error report ID from Zotero after clicking add citation (https://www.zotero.org/support/reporting_problems)
I have submitted an error report, Report ID: 4143363. I hope you can help!
The report does not show anything wrong. Could you produce a Debug ID (different from Report ID) for pressing the Insert Citation button in LibreOffice?
I opened an older LO document (created on my old laptop where Zotero was working) and got the same results, no debugging for those 4 buttons. But when I tried Insert Bibliography, I got a huge debug report the first time. I failed to submit it but I have saved it as a text file. The below text is the first few lines.
I expected I could get the same debugging output again, but after that first time, the output remained 0, while I (successfully) did things like Insert Bibliography, Refresh, Edit Bibliography and Remove Field Codes.
Text file available. Selection:
[JavaScript Error: "1481121405641 Toolkit.Telemetry ERROR TelemetryStorage::loadAbortedSessionPing - error removing ping: PingReadError JS Stack trace: PingReadError@TelemetryStorage.jsm:80:15 < TelemetryStorageImpl.loadPingFile<@TelemetryStorage.jsm:1440:13" {file: "resource://gre/modules/Log.jsm" line: 749}]
[JavaScript Error: "You must insert a citation before performing this operation."]
etc.
Could you:
1) In LibreOffice, go to Tools > Macros > Run Macro..., then select My Macros > Zotero > Zotero. On the right pane you should see the various commands. Does running "ZoteroAddCitation" do anything?
2) If (1) doesn't do anything, could you produce the Debug ID, by closing all LibreOffice windows, enabling debug logging in Zotero, starting Writer with an empty document, clicking Add Citation button and then in Zotero again submitting the debugging output to server and posting the debug ID here?
Okay, I did #1, and this is the output:
BASIC runtime error.
An exception occurred
Type: com.sun.star.uno.RuntimeException
Message: [jni_uno bridge error] UNO calling Java method trigger: non-UNO exception occurred: java.lang.UnsatisfiedLinkError: C:\Users\PE70 6QE\AppData\Local\Temp\jna18386285935166689.dll: Access is denied
java stack trace:
java.lang.UnsatisfiedLinkError: C:\Users\PE70 6QE\AppData\Local\Temp\jna18386285935166689.dll: Access is denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:761)
at com.sun.jna.Native.loadNativeLibrary(Native.java:685)
at com.sun.jna.Native.(Native.java:109)
at org.zotero.integration.ooo.comp.ZoteroOpenOfficeIntegrationImpl$CLibrary.(ZoteroOpenOfficeIntegrationImpl.java:27)
at org.zotero.integration.ooo.comp.ZoteroOpenOfficeIntegrationImpl.trigger(ZoteroOpenOfficeIntegrationImpl.java:92)
It's a Java Runtime error (so neither Zotero nor LibreOffice, to be precise).
Apparently that just "happens" occasionally on Windows. The first thing to check would be the permissions of that Temp folder -- your regular (non-admin) user account should have read/write/execute permission on that folder. If not, give the account those permissions.
If you have those permissions or fixing them doesn't help, I've seen reports that deleting the folder (it will recreate itself as needed) fixes this.
I have two smaller remaining problems now:
1. How do I set up a shortcut key without breaking it again? I got a macro error message when I tried using the shortcut.
2. I only have the text showing, not the icons (Insert Citation rather than the picture). I'm afraid to disable it now that I actually got it working.
Many thanks.
On the other hand, if you can't resolve it and keep on getting unresponsive Add Citation button, but Insert Bibliography works, then it is certainly the same permission problem with the Temp folder, which you will be able to rectify in the same way. Was this the case always? If not, I'd start by reinstalling the extension and restarting LibreOffice.
I'm using Zotero 5.0.34 and LibreOffice 5.3.7.2 (x64)
I'm able to add books to the library, but not to add citations to my LibreOffice documents. When I click on the "add citation" icon in the Zotero toolbar, nothing happens. Same for "add bibliography". I've downloaded the latest version of Java today. I've also looked for answers on various forum threads but the answers are often in technical language that I don't understand. Can anyone help?