Zotero in Ubuntu 10.4 Lucid Lynx
Hello all
I'm having difficulty getting Zotero to function in the current Ubuntu development release. As this is to be a "long term support" version of Ubuntu I think it's a good idea to get Zotero working well from the launch
Ok, here's what I've got -
Ubuntu 10.4 alpha 3
Firefox 3.6
OpenOffice 3.2 RC4
Both the latest Zotero plugins, with detected paths -
file:///usr/lib/openoffice/basis-link/ure-link/share/java/
file:///usr/lib/openoffice/program/
The Zotero toolbar shows up fine in OpenOffice, but on citing I'm told -
"Firefox could not load the component required to communicate with your word processor. Please ensure that the appropriate Firefox extension is installed and try again."
Based on suggestions and reading of several other threads here, I suspect that the problem may be the default install of OpenJDK, which is new in Lucid Lynx. sun-java6 is not (yet) in the Lucid repositories, although a bug is open on this (https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/515678). I also noticed that openoffice.org-java-common is installed by default in Lucid, but not in Karmic
I've tried the various alternative paths suggested in other threads, installing sun-java6 from a PPA (https://launchpad.net/~voronov84/+archive/andreyv), and also uninstalling OpenJDK. No luck so far
My guess is that the Lucid/OpenOffice setup simply has a somewhat different java setup than in previous Ubuntus, and Zotero may need to make a fix for this. Just my guess
If anyone has got Zotero working in Lucid I'd love to know. And any other advice appreciated! Cheers
Roger
I'm having difficulty getting Zotero to function in the current Ubuntu development release. As this is to be a "long term support" version of Ubuntu I think it's a good idea to get Zotero working well from the launch
Ok, here's what I've got -
Ubuntu 10.4 alpha 3
Firefox 3.6
OpenOffice 3.2 RC4
Both the latest Zotero plugins, with detected paths -
file:///usr/lib/openoffice/basis-link/ure-link/share/java/
file:///usr/lib/openoffice/program/
The Zotero toolbar shows up fine in OpenOffice, but on citing I'm told -
"Firefox could not load the component required to communicate with your word processor. Please ensure that the appropriate Firefox extension is installed and try again."
Based on suggestions and reading of several other threads here, I suspect that the problem may be the default install of OpenJDK, which is new in Lucid Lynx. sun-java6 is not (yet) in the Lucid repositories, although a bug is open on this (https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/515678). I also noticed that openoffice.org-java-common is installed by default in Lucid, but not in Karmic
I've tried the various alternative paths suggested in other threads, installing sun-java6 from a PPA (https://launchpad.net/~voronov84/+archive/andreyv), and also uninstalling OpenJDK. No luck so far
My guess is that the Lucid/OpenOffice setup simply has a somewhat different java setup than in previous Ubuntus, and Zotero may need to make a fix for this. Just my guess
If anyone has got Zotero working in Lucid I'd love to know. And any other advice appreciated! Cheers
Roger
This discussion has been closed.
Have you, after installing sun-java, tried "re-install open office components"
from FF Tools --> Add-ons -->Extensions --> Zotero Ooo Intergration Preferences?
If OpenJDK won't work, and users have to subsequently install sun-java6, are there any additional steps required to ensure that Ubuntu and/or OpenOffice and/or Firefox and/or Zotero are looking for Java in the right place? Should OpenJDK be uninstalled or can they co-exist?
Thanks for the input
Roger
With Firefox 3.6, Mozilla got rid of LiveConnect/OJI, and I believe the new NPRuntime IcedTea plug-in is currently in alpha (and should work, but may not). The NPPlugin version will not work under any circumstances.
As far as I can tell, the Lucid repository currently contains only the old LiveConnect/OJI plug-in and the NPPlugin (in the package icedtea6-plugin), so if you need Zotero OpenOffice integration in Firefox 3.6, you'll have to build your own version of the alpha NPRuntime plug-in. Alternatively, icedtea6-plugin should work with Firefox 3.5, but I haven't tested it in Lucid, so YMMV.
Many thanks indeed for your work on this. On a Lucid alpha3 32bit VirtualBox setup, I downgraded to Firefox 3.5.7 from ubuntuzilla. Zotero was set up from scratch and I confirmed icedtea6-plugin was present in the default install. Sorry to say there was no change - I still get the error above.
No movement either on the bug above on packaging sun-java6 for Lucid. But when that does happen it should all work fine, right? Or is there more to it?
Again, much appreciation for looking into this one. Cheers
Roger
I confirmed it's the problem caused by the experimental OpenJDK NPP plugin. I tested it on my Fedora 12 i686 with Firefox 3.6 (from Fedora Rawhide) and OpenOffice.org 3.2 Final (From Oracle)
This problem only happens after I followed the guide here: http://forums.fedoraforum.org/showthread.php?t=239042
Once I reinstalled the Sun plugin (libnpjp2.so) and disable the alpha OpenJDK one, Zotero OpenOffice.org integration works fine, as usual.
There is no need to uninstall OpenJDK plugin. The plugins can be switched on and off dynamically, unlike extensions.
Why wait for the packaging sun-java6? I used the self-extracted bin one and it JUST WORKS.
Hope it would be helpful for you.
Now I need to return to my coursework due tomorrow. :-)
just to report that as of sunday lucid now has sun-java6 in its partner repository. once that's installed (sun-java6-bin sun-java6-jre and sun-java6-plugin), there are two things to do in the terminal to get it all set up properly
1) select your preferred java (if openjdk is still installed)
sudo update-alternatives --config java
2) make a link from sun java plugin to the firefox plugins folder
sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.18/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
you'll also have to select sun java (instead of openjdk) in your openoffice options. with all that done, zotero works for me on lucid
many thanks to everyone who has helped out on this thread
cheers
Roger
what all this shows is that getting zotero working on the default install of ubuntu lucid (which is to be a long term support version, relevant for some years to come) requires several additional steps due to the transition from sun-java6 to openjdk as default
it might be worth zotero either publishing a simple script to automate these steps or, if it's possible to detect an os version, including this within the plugin. at the very least a clear howto should be in the FAQ section
cheers
roger
paste the following into a terminal, line by line -
-----------------------------------
sudo bash
sudo echo 'deb http://archive.canonical.com/ubuntu lucid partner' >> /etc/apt/sources.list
exit
sudo apt-get update
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin
sudo update-alternatives --config java
sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.18/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
-----------------------------------
go to openoffice options and select the newly-installed java
then install the two zotero plugins as normal
good luck!
http://dl.dropbox.com/u/981187/zotero-lucid-error-part1.png
and
http://dl.dropbox.com/u/981187/zotero-lucid-error-part2.png
i've tried this in two different installs, btw. bah, back to karmic for now...
devs, do you have any leads on this?
cheers
roger
After today's sun-java6 update in Ubuntu Lucid, OpenOffice integration no longer works.
If you followed (like me) the list of steps provided by rogerdean on March 2nd, then you will need to remove the old link and create a new one:
sudo rm /usr/lib/mozilla/plugins/libnpjp2.so
sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.19/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
After that, I ''reinstalled OpenOffice.org components" using the corresponding button of the Firefox extension...
...and it worked!
cheers,
Alberto
This is the most amazing part the Linux world, helpfulness, computer solidarity and a strong sense of self empowerment. You, and all the others who share your knowledge and tricks free of charge for all of us, you make the future of the open source, Linux and Ubuntu bright.
I never want to go commercial again. :-)
My only suggestion is this:
Instead of this:
sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.19/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
This:
sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
In other words, link to the stable link, not the actual directory, which changes every time Sun Java gets updated.
Joe
Thanks joehill.
This lack of linking is a bug in Ubuntu 10.4, and I'm sure it'll be fixed before release day at the end of this month. At that point I'm sure the Zotero devs will be able to post a howto in the FAQ section of this site...
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
Then you can
sudo apt-get update
sudo apt-get install sun-java6-jre
sudo apt-get install sun-java6-plugin
Thanks!
sudo update-alternatives --config mozilla-javaplugin.so
At least, that, combined with downloading sun-java6 etc. as above and using alternatives to choose the sun version worked for me.
openoffice 3.2.0
firrefox 3.6.3
amd64
Hi guys
I tried different ways and I still get error:
Firefox could not load the component required to communicate with your word processor. Please ensure that the appropriate Firefox extension is installed and try again.
Could someone write a clear instruction from beginning to the end of what should I do?
add to /etc/apt/sources.list:
deb http://archive.canonical.com/ lucid partner
then:
sudo apt-get update
sudo apt-get install sun-java6-plugin sun-java6-jre
sudo update-alternatives --config mozilla-javaplugin.so
sudo update-alternatives --config java
Choose the sun version in each case.
Somewhere in there I also removed an reinstalled both the firefox plugin and the OpenOffice plugin, though that was before I figured out the sun java thing so it's probably not required.
I've posted a step-by-step of the whole procedure, crediting you guys, at:
http://blog.martineve.com/running-zotero-on-ubuntu-lucid
i think (as per docbrown) you could replace this -
sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
with this -
sudo update-alternatives --config mozilla-javaplugin.so
i'm also finding that referencemarks in .doc files still cause a zotero crash on the second or third action. it's probably worth mentioning that folks may have to use .odt format until this is fixed
cheers
roger
I'm going to show this post to some people I'm trying to teach and show the spirit of free software
Thanks a lot!