{"json_modified": "2016-03-28T08:00:31.902602", "uuid": "98d4276f-f430-404a-8b07-58b0bbcec514", "title": "Java in Firefox Extensions", "url": "/en-US/docs/Archive/Mozilla/Java_in_Firefox_Extensions", "tags": ["Extensions", "Add-ons", "add-ons", "Java"], "translations": [], "modified": "2016-02-29T01:56:03", "label": "Java in Firefox Extensions", "localization_tags": [], "locale": "en-US", "id": 5831, "last_edit": "2013-11-21T12:38:34", "summary": "If you are in need of calling Java code from within a Firefox extension, you can make use of LiveConnect. LiveConnect gives your extension's JavaScript code (linked from or contained in XUL code) access to 2 objects: java
and Packages
(note that per this thread, although the new documentation for the LiveConnect reimplementation states that these globals will be deprecated (in the context of applets), \"Firefox and the Java Plug-In will continue to support the global java/Packages keywords, in particular in the context of Firefox extensions.\"). These 2 objects let you make use of the standard JDK classes, e.g.,", "sections": [{"id": "See_also", "title": "See also"}], "slug": "Archive/Mozilla/Java_in_Firefox_Extensions", "review_tags": []}