First, download a source distribution of Components by following the instructions
here
. Then, make sure you have downloaded and installed all of the
prerequisite
software packages described above.
To build Components, you will need to customize your development environment as follows:
-
Set an environment variable
ANT_HOME
that contains the absolute pathname of the directory where you installed Ant.
-
Set an environment variable
JAVA_HOME
that contains the absolute pathname of the directory where you installed your Java Development Kit.
-
Set an environment variable
SERVLETAPI_HOME
that contains the absolute pathname of the directory where you installed the Servlet API distribution (not required if you have
servlet.jar
on your CLASSPATH already).
To build a "distribution" version of Components, first change your current directory to the directory in which you have unpacked the Components source distribution, and then type one of the following commands (based on whether you are running on a Unix or Windows platform):
./build.sh dist <-- Unix platform
build dist <-- Windows platform
This command will create a binary distribution of Components, in a directory named
dist
(relative to where you are compiling from). This directory contains an exact replica of the files included in a binary distribution of Components, as described in the following section.