Will's blog

purpose: Will Kahn-Greene's blog of Miro, PyBlosxom, Python, GNU/Linux, random content, PyBlosxom, Miro, and other projects mixed in there ad hoc, half-baked, and with a twist of lemon

[ home | blog home | recent activity ]

Wed, 24 Oct 2007

miro and sun-java6-plugin conflict clarification

I want to clarify the situation with Miro and the sun-java6-plugin package.

Prior to 0.9.9.9, if you had the sun-java6-plugin installed and you install Miro, then Miro would crash on startup. For 0.9.9.9, we added a conflict with the sun-java6-plugin package. That means that in order to install Miro, you will have to uninstall the sun-java6-plugin.

I've gotten a lot of flack for this fix in the last couple of days--and for good reason: this sucks for users who have that plugin installed. I definitely understand the frustration and we don't consider this a final solution. (As a philosophical note, most development solutions are not final--most things can be changed if a better feasible option is found and implemented.)

The bottom line is that if you use the sun-java6-plugin plugin, you can't use Miro. Adding the conflict line to the package makes it more user-friendly when installing Miro because then you're not stuck in a situation where you have installed Miro, it crashes on startup, and you have no clue why.

We're interested in a real solution for this problem. Details of the problem are in these bugs:

If you have feasible ideas, add them in the comments on bug 9064 or comment here.

Comments:

Posted by Hugh on Thu Oct 25 05:01:51 2007
I've just installed the RC verison on Gutsy and I must say it is most stable. So thanks for such a great release. With regards to the JAVA plugin...What about using an older version of JAVA? I have JAVA 5 in Synaptic for example.


Posted by wguaraldi on Sat Oct 27 21:58:41 2007
I just added a conflict for sun-java5-plugin because we've had reports that that plugin also causes problems. A comment in the LaunchPad bug suggests using the icedtea plugin. The package is 'icedtea-java7-plugin' and it's in the Gutsy universe repository. I haven't used it myself so I can't vouch for this. If you use it and don't have problems in the long term, let us know. It may be a good solution for users who really need a Java plugin for their browser.


Posted by forty two and rising… » My new podcatcher…Miro? on Wed Nov 7 00:30:25 2007
[...] crap.  Looks like sun-java6-plugin and Miro have a conflict.  I installed the plugin and Miro crashed.  Looks like older versions have conflicts as well.  I [...]


Posted by James Stansell on Wed Nov 7 14:15:38 2007
The icedtea package is a pre-alpha version of Java 7, built on the GPL source released by Sun. Because Sun didn't release the browser plugin source icedtea uses the gcjwebplugin. Therefore if it conflicts with gtkmozembed it could well do it in a different way than sun-java6-plugin does. The conflict looks, offhand, like the browser environment may not be fully configured with what the Java plugin needs. What differences do you see if you compare LD_LIBRARY_PATH with the one setup by the firefox launcher script? -james.


Posted by Chris on Wed Nov 14 18:55:34 2007
It seems to me that you could work around it by exporting the JAVA_HOME environment variable yourself for your Miro session, pointing it either to a null path or to your own (GPL'd?) JRE libs. Why crash on arbitrary system environment variables when you can define your own? I don't get it.


Posted by wguaraldi on Wed Nov 14 23:55:51 2007
James and I traded emails and looked into various environment variables exported by the firefox scripts, but that didn't pan out. We're still looking for good ideas.


Posted by wguaraldi on Thu Nov 15 00:11:25 2007
Chris: BDK, James and I worked over the issue last week and tried adjusting the environment variables that the firefox script exports before launching the firefox binary. You can see a list of them if you do "firefox --debug" at the prompt. I just tried exporting JAVA_HOME, but that doesn't seem to have any effect. We think it might be possible to coerce gtkmozembed into not loading plugins, but we haven't had any success with that so far.


Posted by techmin on Tue Apr 8 19:38:04 2008
a tip is to duplicate /usr/lib/firefox for example cp -r /usr/lib/firefox /usr/lib/miro after cd /usr/lib/miro/plugins remove plugin java: rm libjavaplugin.so after modify mozillaLibPath: nano /usr/share/miro/resources/app.config mozillaLibPath=/usr/lib/miro


Posted by techmin on Tue Apr 8 19:45:46 2008
An elaborate solution is to use sun-java-plugin for firefox and icedtea for miro: if you have installed sun-java-plugin miro and icedtea yuou have (in ubuntu system, but i suppose similar on other distros) firefox java plugin point to: /etc/alternatives/firefox-javaplugin.so firefox-javaplugin.so point to /usr/lib/jvm/java-7-icedtea/jre/lib/i386/gcjwebplugin.so miro use mozilla-javaplugin.so this point to: /usr/lib/jvm/java-7-icedtea/jre/lib/i386/gcjwebplugin.so in ubuntu: sudo update-alternatives –config java and select sun java. after: cd /etc/alternatives after: sudo ln -sf /usr/lib/jvm/java-6-sun-1.6.0.03/jre/plugin/i386/ns7/libjavaplugin_oji.so firefox-javaplugin.so duplicate firefox: sudo cp -r /usr/lib/firefox /usr/lib/miro after: cd /usr/lib/miro/plugins after sudo ln -sf /etc/alternatives/mozilla-javaplugin.so libjavaplugin.so and adjust mozillalibpath: sudo gedit /usr/share/miro/resources/app.config mozillaLibPath=/usr/lib/miro A this point you use sun plugin for firefox and icedtea for miro.


Post a new comment:

Three things:

  1. New comments get placed in a "draft" status and will NOT show up on the site until I explicitly approve it. Sometimes that happens within 24 hours.
  2. I reserve the right to reject/remove inappropriate comments.
  3. Sometimes I'll reply to a comment directly in email--so make sure your email address is correct.

If you can't for some reason post a comment, send me an email: willg at bluesock dot org.

Your name:


Your e-mail address (this doesn't get displayed to anyone--sometimes I'll reply directly to you):


URL of your website (optional):


Comment:


Yes, I am a human!


pyblosxom::1.5-dev git-master

Copyright 1996 to 2012, Will Guaraldi Kahn-Greene, under the Creative Commons BY-SA 3.0 license

Creative Commons License
Will's Blog by William Kahn-Greene is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.