JavaXPCOM

  • Revision slug: JavaXPCOM
  • Revision title: JavaXPCOM
  • Revision id: 111220
  • Created:
  • Creator: Dria
  • Is current revision? No
  • Comment new topic page format

Revision Content

JavaXPCOM allows for communication between Java and XPCOM, such that a Java application can access XPCOM objects, and XPCOM can access any Java class that implements an XPCOM interface. With JavaXPCOM, a developer can talk to XPCOM or embed Gecko from a Java application. JavaXPCOM is very similar to XPConnect (JavaScript-XPCOM bridge), and uses XPIDL.

JavaXPCOM is now built by default on the XULRunner trunk. Download the trunk nightlies to try it out.

Documentation

JavaXPCOM Development
How to get and build the source, as well as how to view and report bugs.
Sample code
There are several Java test applications checked in to the tree that give examples on how to embed Gecko or init XPCOM from within Java.
Embedding Mozilla in a Java Application using JavaXPCOM
XULRunner ships with the JavaXPCOM component, which allows Java code to interact with XPCOM objects. As you will see in this article, working with XPCOM objects in Java is not that much different than doing so in C++.

View All...

Community

  • View Mozilla Java forums...

{{template.DiscussionList("dev-tech-java", "mozilla.dev.tech.java")}}

  • View Mozilla Embedding forums...

{{template.DiscussionList("dev-embedding", "mozilla.dev.embedding")}}

Related Topics

XPCOM, Embedding Mozilla

Categories

Interwiki Language Links


Revision Source

<p>
</p>
<div>
<p><b>JavaXPCOM</b> allows for communication between Java and <a href="en/XPCOM">XPCOM</a>, such
that a Java application can access XPCOM objects, and XPCOM can access
any Java class that implements an XPCOM interface. With
JavaXPCOM, a developer can talk to
XPCOM or embed <a href="en/Gecko">Gecko</a> from a Java application. JavaXPCOM is very
similar to <a href="en/XPConnect">XPConnect</a> (JavaScript-XPCOM bridge), and uses <a href="en/XPIDL">XPIDL</a>.
</p><p>JavaXPCOM is now built by default on the <a href="en/XULRunner">XULRunner</a> trunk.  Download the trunk nightlies to try it out.
</p>
</div>
<table class="topicpage-table">
<tbody><tr><td>
<h4 name="Documentation"> <a href="Special:Tags?tag=JavaXPCOM&amp;language=en">Documentation</a> </h4>
<dl><dt> <a href="en/JavaXPCOM/Development">JavaXPCOM Development</a>
</dt><dd> <small>How to get and build the source, as well as how to view and report bugs.</small>
</dd></dl>
<dl><dt> <a href="en/JavaXPCOM/Examples">Sample code</a>
</dt><dd> <small>There are several Java test applications checked in to the tree that give examples on how to embed Gecko or init XPCOM from within Java.</small>
</dd></dl>
<dl><dt> <a href="en/JavaXPCOM/Embedding_Mozilla_in_a_Java_Application_using_JavaXPCOM">Embedding Mozilla in a Java Application using JavaXPCOM</a>
</dt><dd> <small><a href="en/XULRunner">XULRunner</a> ships with the JavaXPCOM component, which allows Java code to interact with XPCOM objects. As you will see in this article, working with XPCOM objects in Java is not that much different than doing so in C++.</small>
</dd></dl>
<p><span class="alllinks"><a href="Special:Tags?tag=JavaXPCOM&amp;language=en">View All...</a></span>
</p>
</td>
<td>
<h4 name="Community"> Community </h4>
<ul><li> View Mozilla Java forums...
</li></ul>
<p>{{template.DiscussionList("dev-tech-java", "mozilla.dev.tech.java")}}
</p>
<ul><li> View Mozilla Embedding forums...
</li></ul>
<p>{{template.DiscussionList("dev-embedding", "mozilla.dev.embedding")}}
</p>
<ul><li> <a class="external" href="mailto:jhpedemonte@gmail.com">Javier Pedemonte</a>, lead developer of the JavaXPCOM project
</li></ul>
<h4 name="Related_Topics"> Related Topics </h4>
<dl><dd> <a href="en/XPCOM">XPCOM</a>, <a href="en/Embedding_Mozilla">Embedding Mozilla</a>
</dd></dl>
</td>
</tr>
</tbody></table>
<p><span class="comment">Categories</span>
</p><p><span class="comment">Interwiki Language Links</span>
</p><p><br>
</p>
Revert to this revision