Compiling Xindice on Unix | ![]() |
Intended audience
This How-to is aimed at developers who want to compile Xindice on Unix.
Purpose
Following the steps of this how-to should allow you to compile Xindice on unix.
Prerequisites
See the prerequisites page.
Steps
Don't skip the prerequisites
Be sure to follow the prerequisites.
Verify your environment
Make sure you have the JAVA_HOME environment variable set.
quintara:~> echo $JAVA_HOME /usr/java/jdk1.3.1_06 quintara:~>
Compile
Navigate to the location where you untarred your Xindice sources and run the build.sh script. Your output will resemble:
quintara:/xml-xindice> ./build.sh Xindice Build System -------------------- Building with classpath java/lib/ant-1.5.1.jar:java/lib/commons-logging-1.0. 1.jar:java/lib/infozone-tools.jar:java/lib/junit-3.8.1.jar:java/lib/junit-ad dons-1.1.jar:java/lib/junitperf-1.8.jar:java/lib/servlet.jar:java/lib/xalan- 2.4.0.jar:java/lib/xercesImpl-2.1.0.jar:java/lib/xml-apis-1.0b3.jar:java/lib /xmldb-api-20021118.jar:java/lib/xmldb-api-sdk-20021118.jar:java/lib/xmldb-x update.jar:java/lib/xmlrpc-1.1.jar::/usr/java/jdk1.3.1_06/lib/tools.jar Starting Ant... Buildfile: ./build.xml init: src-build: test-build: examples-build: build: jar-release: war-release: examples-release: release: BUILD SUCCESSFUL Total time: 11 seconds
Verify the compilation
If the compile was succeeded, you will find the output files in the dist/ subdirectory.
quintara:~>ls -l dist total 2778 -rw-r--r-- 1 dviner users 9467 Nov 21 11:56 xindice-1.1b-examples.jar -rw-r--r-- 1 dviner users 392842 Nov 21 11:56 xindice-1.1b.jar -rw-r--r-- 1 dviner users 2421719 Nov 21 11:56 xindice-1.1b.war quintara:~>
Feedback
If you run into problems, don't worry. Be sure to send feedback so that we can improve these documents for the next person.
Revisions
Find a problem with this document? Consider contacting the mailing lists or submitting your own revision. For instructions, read the How To Submit a Revision.