(this requires the general mac build environment
as described on the Mozilla
Mac Build Page)
Mac build environment additions:
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:
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:
The current project file is stored as an importable XML file named MRJPlugin.xml,
so you can do one of the following:
Run the AppleScript file called "MRJPlugin.import", and load the resultant
CW project file in CodeWarrior
Or: from CW file menu, choose "Import Project..." and select the XML file.
Building the plugin:
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.
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:
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:.
Finally, build the MRJPlugin.jar target
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.