Re: LiveConnect and/or JavaXPCOM

poorboywilly <[email protected]> Mon, 1 Dec 2008 13:25:46 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <[email protected]>
On Dec 1, 1:39 pm, Greg Bowyer <[email protected]> wrote:
> As far as I am aware, you cannot currently embed java xpcom components
> into xulrunner, rather (as you have seen you have to run the event loop
> from java). Javier Pedemonte, who I am _sure_ will respond to this with
> far better information than myself is the lead for xpcom and was, last
> time I heard was working on getting java to be called from normal
> xulrunner builds.

Yes, I almost emailed him directly as almost all information I found
led back to him in some way.  Thanks for letting me know about the
java components...I guess this is why there is no information on it.

> LiveConnect is initially intended for use with applets and webpages, and
> really works in mozilla due to the fact that xul is treated largly as a
> target for rendering (like html). Using it outside of webpages is made
> somewhat harder due to classloading hassles (and I am assuming that as
> you are using nutch you are going to run into classloading and sandbox
> issues).

It looks like I actually got some basic LiveConnect calls (to custom
classes) to work.  Don't know what changed; putting it down for a
while seemed to work though :).

> That said the smile guys at mit have done a lot of work with liveconnect
> and should be able to point you in the right direction.
> (http://simile.mit.edu/wiki/Piggy_Bank)
>
> Mozilla Developer Center also has a bunch of documentation here that
> should apply fairly accuratly to what I think you are trying to dohttp://developer.mozilla.org/en/docs/Java_in_Firefox_Extensions

Thanks for the links!

> However to annoy you live connect is as far as I am aware doomed in
> mozilla 2 to being removed, see herehttps://bugzilla.mozilla.org/show_bug.cgi?id=397080
> andhttp://boomswaggerboom.wordpress.com/2007/04/16/javaplugin-cleanup-fo...

I ran into this information in my searches.  However, this is not
really a concern (to me) at the moment, even though it probably should
be.  Hopefully the death of LiveConnect will be balanced the birth of
the Java XPCOM component and it is moot.  Circle of Life and what have
you.


Thanks also Brett with the liveconnect links.

--Jason