Follow the instructions in the previous two appendixes to install JDK, Ant, Tomcat, MySQL, and MM.MySQL for your appropriate operating system.
Go to http://jakarta.apache.org/log4j/jakarta-log4j-1.1.3.zip, open the archive using WinZip, and extract the archive to /tmp/log4j. Find the dist/lib subdirectory, and copy log4j.jar to /var/tomcat4/lib.
Go to http://jakarta.apache.org/builds/jakarta- turbine /alpha/3.0a4/, click tdk-3.0a4.zip , and open the archive extract to /tmp . Copy velocity-1.2-dev.jar and turbine-2.1.jar from the share/lib subdirectory to /var/tomcat4/lib . Be sure that you do not use the 3.0a5 release because it doesn't have the turbine-2.1.jar file in it.
Unzip the CARTAPP zip file into /tmp .
Open an editor in /tmp/CARTAPP/bfg/build.xml and change the definition of tomcatdir to /var/tomcat4 .
Do an ant dist in the /tmp/CARTAPP/bfg directory.
Edit the server.xml file in /var/tomcat4/conf/ , adding the following:
Stop Tomcat, if it's running, and restart it ( enter the command /etc/init.d/tomcat4 stop , wait 30 seconds, and then enter /etc/init.d/tomcat4 start as root.)
cd to /tmp/CARTAPP/sql/bfg .
Run database_create.sh . If you've set a root password (which you should have) for MySQL, you'll have to type it several times.
Set your browser to http://localhost:8180/bfg/jsp , and you should see the application running. If not, check to make sure that Tomcat is running properly by going to the base Tomcat index page.