Re: how to accessing java ?

Brett Zamir <[email protected]> Sun, 24 Jan 2010 23:20:11 +0800
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <[email protected]>
On 1/24/2010 11:12 PM, andrewarnier wrote:
> Hi all ,
>
> I currently have some Java classes. Instead of converting them to
> Javascript, I am exploring of using Java XPCOM or Liveconnect to connect js
> and java into a firefox extension.
>
>   However, I find some news about Liveconnect is not longer going with
> firefox 3.6 , is it true ?
>
>    

Where did you find this news? Be aware that people used to be saying 
that LiveConnect was going away in Firefox, but the reason for this was 
that Mozilla's own code specific for Java was being removed, but there 
was still the generic plug-in architecture which Java could use--and did 
use--to add back LiveConnect support. Sun also calls this LiveConnect, 
so it is not correct to say that LiveConnect is no longer supported--at 
least if one is using Java1.6v12+ (version 1.6v11 added LiveConnect 
support, but only v12 added working support for Firefox extensions).

> And anyone knows what's the difference about javaxpcom and liveconnect ? if
> you have any suggestion about develop java in firefox extension  , please
> let me know!
>    
Someone here already mentioned that JavaXPCOM is for calling XPCOM 
within Java.

You can, however, also make XPCOM calls conditionally within your 
JavaScript, depending on return values from your LiveConnect-ed Java 
classes.

I'd say forget about JavaXPCOM. Just use LiveConnect and follow 
https://developer.mozilla.org/En/Java_in_Firefox_Extensions

best wishes,
Brett