MRJ Plugin Build Instructions

(as of 16.II.2000)


In 8ish Easy Steps

(this requires the mac build environment as described on the Mozilla Mac Build Page)
  1. Download the latest MRJ SDK (MRJ_SDK_2.2 or later). Run the installer, which should create a folder at the root of your system volume, called "MRJ SDK 2.2" Copy the CIncludes and Libraries folders to the "MRJSDK" folder in mozilla/plugin/oji/MRJ.
    1. Copy JManager.h from .../Metrowerks CodeWarrior/Java Support/VM_Support/MRJ_Support/CIncludes into the above copied CIncludes directory in MRJSDK.
  2. Open the project mozilla/plugin/oji/MRJ/plugin/MRJInABox.mcp.
    1. Build the BackwardAdaptor target.
    2. To build the plugin for 4.X browsers, build the "MRJInABox (4.X)" target. To build for 5.X, build the "MRJInABox" target.
  3. Build the project mozilla/js/macbuild/LiveConnectClasses.mcp, and make an alias to the file liveconnect.jar in mozilla/plugin/oji/MRJ/plugin; if liveconnect.jar cannot be found in .../js/macbuild/ after the build is successful, it can be found in .../dist/liveconnect/
  4. Build the project mozilla/plugin/oji/MRJ/testing/ConsoleApplet.mcp, and make an alias to the file ConsoleApplet.jar in mozilla/plugin/oji/MRJ/plugin.
  5. Finally, build the "MRJPlugin.jar" target in MRJInABox.mcp.
  6. To install the 5.X plugin, find the plugins folder for the debug; it should be ...dist:viewer_debug:Plugins.   Drag both MRJInABox and MRJPlugin.jar into this folder. To install the 4.X plugin, drag both MRJPlugin and MRJPlugin.jar into your "Plug-ins" folder located inside your Netscape Communicator folder.
Well that's it. You should now have a working build of the MRJ plugin.


If you have comments or suggestions, email modgock@eng.sun.com