updated build instructions for the new world order.

This commit is contained in:
modgock%eng.sun.com 2000-05-03 04:58:30 +00:00
Родитель 4b64169eb8
Коммит bc0d7b6dd9
1 изменённых файлов: 47 добавлений и 29 удалений

Просмотреть файл

@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.61 (Macintosh; U; PPC) [Netscape]">
<meta name="GENERATOR" content="Mozilla/4.61 (Macintosh; I; PPC) [Netscape]">
<title>MRJ Plugin Build Instructions</title>
</head>
<body bgcolor="#C0C0C0" link="#333333" vlink="#FF0000">
@ -11,68 +11,86 @@
<h2>
MRJ Plugin Build Instructions</h2></center>
<center><i>(as of 16.II.2000)</i>
<center><i>(as of 2.V.2000)</i>
<p>
<hr></center>
<center>
<h3>
In 8ish Easy Steps</h3></center>
In 6ish or 8ish Easy Steps</h3></center>
<center><font size=-1>(this requires the mac build environment as described
on the <a href="http://www.mozilla.org/build/mac.html">Mozilla Mac Build
Page</a>)</font></center>
<center><font size=-1>(this requires the general mac build environment
as described on the <a href="http://www.mozilla.org/build/mac.html">Mozilla
Mac Build Page</a>)</font></center>
<h4>
Mac build environment additions:</h4>
<ol>
<li>
Download the latest <a href="ftp://ftp.apple.com/developer/Development_Kits/">MRJ
SDK (MRJ_SDK_2.2 or later)</a>. 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.</li>
In order to keep with the myth that we "don't use ANYTHING relative to
CodeWarrior MPW", copy the <b>StdCLib</b> stubs library from MPW (in CodeWarrior
MPW:Interfaces&amp;Libraries:Libraries:SharedLibraries) to <b>Metrowerks
CodeWarrior:MacOS Support:Universal:Libraries:StubLibraries:</b></li>
<ol>
<li>
Copy JManager.h from .../Metrowerks CodeWarrior/Java Support/VM_Support/MRJ_Support/CIncludes
into the above copied CIncludes directory in MRJSDK.</li>
Now copy <b>jni.h</b> and <b>jni_md.h</b> from the latest <a href="ftp://ftp.apple.com/developer/Development_Kits/">MRJ
SDK (MRJ_SDK_2.2 or later)</a> to <b>Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:</b></li>
</ol>
<li>
Open the project mozilla/plugin/oji/MRJ/plugin/MRJInABox.mcp.</li>
<h4>
Importing the CW project file:</h4>
<ol>
<li>
Build the BackwardAdaptor target.</li>
The current project file is stored as an importable XML file named <b>MRJPlugin.xml,</b>
so you can do one of the following:</li>
<ol>
<li>
Run the AppleScript file called "MRJPlugin.import", and load the resultant
CW project file in CodeWarrior</li>
<li>
To build the plugin for 4.X browsers, build the "MRJInABox (4.X)" target.
To build for 5.X, build the "MRJInABox" target.</li>
Or: from CW file menu, choose "Import Project..." and select the XML file.</li>
</ol>
</ol>
<h4>
Building the plugin:</h4>
<ol>
<li>
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/</li>
Build the <i>MRJPlugin</i> target - this should automatically first build
the <i>BackwardAdaptot</i> target. If it doesn't do this, do it by hand
by choosing the <i>BackwardAdaptor</i> target and building.</li>
<li>
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.</li>
Build the project <b>mozilla:js:macbuild:LiveConnectClasses.mcp</b>, and
make an alias to the file <b>liveconnect.jar in mozilla:plugin:oji:MRJ:plugin:</b>;
if <b>liveconnect.jar</b> cannot be found in <b>mozilla:js:macbuild:</b>
after the build is successful, it can be found in <b>mozilla:dist:liveconnect:</b></li>
<li>
Finally, build the "MRJPlugin.jar" target in MRJInABox.mcp.</li>
Build the project <b>mozilla:plugin:oji:MRJ:testing:ConsoleApplet.mcp</b>,
and make an alias to the file <b>ConsoleApplet.jar</b> in <b>mozilla:plugin:oji:MRJ:plugin:</b>.</li>
<li>
Finally, build the <i>MRJPlugin.jar</i> target</li>
<li>
To install the 5.X plugin, find the plugins folder for the debug; it should
be ...dist:viewer_debug:Plugins.&nbsp;&nbsp; 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.</li>
be <b>mozilla:dist:viewer_debug:Plugins:</b>.&nbsp;&nbsp; Drag both <b>MRJInABox</b>
and <b>MRJPlugin.jar</b> into this folder. To install the 4.X plugin, drag
both <b>MRJPlugin</b> and <b>MRJPlugin.jar</b> into your "Plug-ins" folder
located inside your Netscape Communicator folder.</li>
</ol>
<center>Well that's it. You should now have a working build of the MRJ
plugin.
<p>
<hr>
<p>If you have comments or suggestions, email <a href="mailto:modgock@eng.sun.com">modgock@eng.sun.com</a></center>
<p>If you have comments or suggestions, email <a href="mailto:beard@netscape.com">beard@netscape.com</a></center>
</body>
</html>