David,
This is very cool- thanks for taking the time to look at this. I can
confirm that it's working on
windows, but unfortunately it seems it's still broken on mac. There
the alert shows "test is
undefined" and error console just shows the opening initialize brace.
The system console has
the same liveconnect errors from my previous email. In my own testing
on the mac, it seems like
even the simplest 'java.System.out.println("hello")' from chrome has
the same effect.
I think I'm going to file a bug with Mozilla on this- it was working
on FF2 and if its still working on Windows
then the disparity between platforms suggests that this is not
intentional. I'll keep you informed
if something changes.
thanks again for the help,
-Bill
On Mar 9, 2008, at 9:00 AM, [EMAIL PROTECTED] wrote:
>
>
> Bill,
>
> I seem to have gotten the Java Firefox Extension to work on Firefox 3:
>
>
> http://simile.mit.edu/repository/java-firefox-extension/java-firefox-extension-2.0.0.xpi
>
> Once it's installed and Firefox is restarted, the Error Console
> should say
>
> FooComponent.initialize {
> Greetings: Hello World!
> } FooComponent.initialize
>
> The string "Hello World!" comes from Java. Also you should be able to
> invoke
> Tools -> Java Firefox Extension: Do It!
> and get an alert of 43. You should also be able to open a new window,
> invoke that same menu command, and get 44. This shows that there is
> only
> one instance of the Test class shared across windows.
>
> The fix was to move the Java class instantiation code out of the XPCOM
> code back into the chrome code. The chrome code
>
> http://simile.mit.edu/repository/java-firefox-extension/firefox/chrome/content/scripts/browser-overlay.js
> has to do more work now, which makes it a little less pretty, but it
> works. On the other hand, we can do away entirely with all that policy
> setting hack! Frankly, I don't know why I didn't use this method
> before! :-)
>
> Let me know if you find any problem.
>
> David
>
>
> Bill Orcutt wrote:
>> Thanks David-
>>
>> FWIW, Here are the errors that are reported to the console:
>>
>> Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]:
>> initialization error: Can't load class netscape/javascript/JSObject
>> Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]: MRJ
>> Plugin JEP: JavaScript-to-Java LiveConnect failed -- no security
>> manager!
>> Mar 7 14:02:57: --- last message repeated 6 times ---
>> Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]:
>> initialization error: Can't load class java/lang/Object
>> Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]:
>> LiveConnect was unable to reflect one or more components of the Java
>> runtime.
>>
>> The blog post below suggests that LiveConnect is going away in
>> Mozilla
>> 2.0- perhaps they've already crippled it:
>>
>> http://boomswaggerboom.wordpress.com/2007/04/16/javaplugin-cleanup-for-mozilla-20/
>>
>> cheers
>>
>> -Bill
>>
>>
>>
>> On Mar 3, 2008, at 11:04 AM, [EMAIL PROTECTED] wrote:
>>
>>> Bill,
>>>
>>> I think we have seen a problem where if there is one exception
>>> thrown
>>> then the LiveConnect bridge just stops working altogether (until you
>>> restart Firefox). We got around that by catching all exceptions
>>> before
>>> they hit the LiveConnect bridge. That was a few months ago and it
>>> might
>>> have been with Firefox 2.0.0.1x rather than Firefox 3; and Ryan Lee
>>> was
>>> the last person to track it.
>>>
>>> I don't think we have really tried to keep up with Firefox 3. Please
>>> let
>>> us know if you make any progress on this front. Thanks!
>>>
>>> David
>>>
>>> Bill Orcutt wrote:
>>>
>>>> Hi-
>>>>
>>>> Has anyone attempted to use the Java Firefox Extension (or similar
>>>> techniques for calling Java from chrome js) in a Firefox 3 beta? On
>>>> the mac (OSX 10.5.2) my extension fails silently when when the
>>>> first
>>>> call to java is made. Was working fine in FF2. The XqUSEme
>>>> extension- https://addons.mozilla.org/en-US/firefox/addon/5515
>>>> - which also uses java is similarly broken on FF3. Wondering if
>>>> anyone at SIMILE has already investigated this issue...
>>>>
>>>> thanks
>>>>
>>>> -Bill
>>>> _______________________________________________
>>>> General mailing list
>>>> [email protected]
>>>> http://simile.mit.edu/mailman/listinfo/general
>>>>
>>>>
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://simile.mit.edu/mailman/listinfo/general
>>
>
>
>
> ------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
>
> End of General Digest, Vol 23, Issue 24
> ***************************************
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general