FW: calling Java code from Firefox extension
"andrewarnier" <[email protected]> Tue, 19 Jan 2010 14:37:35 +0800
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <01bd01ca98d1$e4a1b470$ade51d50$@com> |
Hi all, Well, as I said, I want/need to have the firefox extension communicating with another java application. From what I've read so far it seems that the best approach is to have a XPCOM. That seems exactly like what I need! the problem is that the page (https://developer.mozilla.org/En/JavaXPCOM ) was last updated in 2006 and the examples in 2007 (or something like that), not only it's old but also very poorly documented and explained. Since the JavaXPCOM is so poorly documented, (1 ) what I need now is some examples that will help me develop a working skeleton on which I will be able to add functionality afterwards. (2)By skeleton I mean a componenet which has one method which can be called from the extension using javascript. Cheers, Andrew -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Grant Gayed Sent: Monday, January 18, 2010 11:03 PM To: [email protected] Subject: Re: calling Java code from Firefox extension Hi, JavaXPCOM is used for making XPCOM calls from Java, so it's probably not what you're looking for. Some examples of using JavaXPCOM (in the context of an app using SWT) are: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/ec lipse/swt/snippets/Snippet306.java?view=co http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/ec lipse/swt/snippets/Snippet323.java?view=co http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/ec lipse/swt/snippets/Snippet329.java?view=co Grant "andrewarnier" <[email protected]> wrote in message news:[email protected]... > Hi all, > > I'm new to firefox extension. I want to calling Java code from within a > Firefox extension, > > I can using liveconnect and xpconnect to do it , > > I'm just want to know what's different about it and JAVAXPCOM. > > If I using javaxpcom , am I need to via JNI to complete ? > > > > Again, any help here would be seriously appreciated. Even if it's > > just a little insight. > > > > > _______________________________________________ dev-tech-java mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-java