Visit Mozilla.org

Building JavaXPCOM

From MDC


JavaXPCOM provides a bridge for Java applications to embed Gecko and use XPCOM components. Building JavaXPCOM requires an installed JDK and a few build options.

[edit] Prerequisites

Building JavaXPCOM requires an installed JDK.

[edit] Build Options

To enable building the JavaXPCOM components, you must build the "java" extension. This is normally accomplished with the following flag in your mozconfig file:

ac_add_options --enable-javaxpcom

The configure code must be able to find the installed JDK. You must either set the JAVA_HOME environment variable to point to the directory of your JDK installation, or specify the additional configure flag:

ac_add_options --with-java-include-path=dir
ac_add_options --with-java-bin-path=dir

Note: If you are building on Mac OS X and you do not specify the --with-java-include-path or --with-java-bin-path configure flags, the build defaults to /System/Library/Frameworks/JavaVM.framework/Headers.