source: tags/0.12.0/j/doc/building.html

Last change on this file was 7806, checked in by piso, 20 years ago

Work in progress.

File size: 2.1 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
3<html>
4
5<head>
6<title>J User's Guide - Building the Source</title>
7<LINK REL="stylesheet" HREF="j.css" TYPE="text/css">
8</head>
9
10<body>
11
12<a href="contents.html">Top</a>
13
14<hr>
15
16<h1>Building the Source</h1>
17
18<hr>
19
20<p>
21<b>Using configure and make</b>
22<p>
23This is the recommended build system on Unix platforms. On Windows, you are
24more likely to succeed with Ant; see <a href="#Using_Ant">below</a>.
25<p>
26For Linux:
27
28<pre>
29    $ ./configure --with-jdk=DIR
30    $ make
31    $ make install
32</pre>
33
34The <code>--with-jdk</code> option is <b>always</b> required,
35in order to specify which JDK to use (give the full path of its top-level directory).
36<p>
37On Mac OS X, the --with-jdk option should be specified like this:
38<pre>
39    --with-jdk=/System/Library/Frameworks/JavaVM.framework
40</pre>
41<p>
42You can use the <code>--with-extensions</code> option to specify extensions to
43the <code>CLASSPATH</code>. For example, you may want to build j with support
44for an external XML parser:
45<pre>
46    $ ./configure ... --with-extensions=/usr/share/java/xerces.jar
47</pre>
48Extensions specified in this way are added to the <code>CLASSPATH</code> both
49during the build process and at runtime.
50<p>
51<a name="jpty"></a>If you want to use certain experimental features such as
52shell and ssh buffers, you should specify the <code>--enable-jpty</code> option
53(you will also need to set <code>enableExperimentalFeatures=true</code> in your
54<a href="preferences.html">preferences</a> file).
55<p>
56By default, j will be installed in /usr/local/bin.
57<p>
58After you've built and installed j, you should be able to invoke it from the
59command line by just typing
60<pre>
61    $ j
62</pre>
63if /usr/local/bin is in your path.
64<p>
65<b><a name="Using_Ant">Using Ant</a></b>
66<p>
67<a href="http://jakarta.apache.org/ant">Ant</a> is the recommended build system
68on Windows. Version 1.4.1 or later of Ant is required.
69<p>
70Change into the root directory of the j source distribution and edit the file
71build.properties to suit your situation. Then:
72<pre>
73    C:\j-0.21.0> ant all
74</pre>
75This will build j.jar and generate a batch file, j.bat, that you can use to
76launch j.
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.