MRJ Plugin Build Instructions

(as of 2.V.2000)


In 6ish or 8ish Easy Steps

(this requires the general mac build environment as described on the Mozilla Mac Build Page)

Mac build environment additions:

  1. In order to keep with the myth that we "don't use ANYTHING relative to CodeWarrior MPW", copy the StdCLib stubs library from MPW (in CodeWarrior MPW:Interfaces&Libraries:Libraries:SharedLibraries) to Metrowerks CodeWarrior:MacOS Support:Universal:Libraries:StubLibraries:
  2. Now copy jni.h and jni_md.h from the latest MRJ SDK (MRJ_SDK_2.2 or later) to Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:

Importing the CW project file:

  1. The current project file is stored as an importable XML file named MRJPlugin.xml, so you can do one of the following:
    1. Run the AppleScript file called "MRJPlugin.import", and load the resultant CW project file in CodeWarrior
    2. Or: from CW file menu, choose "Import Project..." and select the XML file.

Building the plugin:

  1. Build the MRJPlugin target - this should automatically first build the BackwardAdaptot target. If it doesn't do this, do it by hand by choosing the BackwardAdaptor target and building.
  2. 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 mozilla:js:macbuild: after the build is successful, it can be found in mozilla:dist:liveconnect:
  3. 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:.
  4. Finally, build the MRJPlugin.jar target
  5. To install the 5.X plugin, find the plugins folder for the debug; it should be mozilla: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 beard@netscape.com