Compiling Xindice on Windows | ![]() |
Intended audience
This How-to is aimed at developers who want to compile Xindice on Windows.
Purpose
Following the steps of this how-to should allow you to compile Xindice on windows.
Prerequisites
See the prerequisites page.
Steps
Don't skip the prerequisites
Be sure to follow the prerequisites.
Verify your environment
Open a new command window. Click Start, choose Run. Enter cmd and hit return. A new command window should appear.
Make sure you have the JAVA_HOME environment variable set.
C:\>echo %JAVA_HOME% C:\j2sdk1.4.1_01 C:\>
Compile
Navigate to your the location where you unzipped your Xindice sources and run the compile.
C:\>d: D:\>cd xindice\current\xml-xindice D:\xindice\current\xml-xindice>dir Volume in drive D is Data Volume Serial Number is A3EB-9689 Directory of D:\xindice\current\xml-xindice 11/20/2002 08:40p <DIR> . 11/20/2002 08:40p <DIR> .. 10/29/2002 11:59a 1,507 .classpath 10/29/2002 11:59a 64 .cvsignore 10/29/2002 11:59a 387 .project 11/18/2002 01:41p <DIR> bin 11/20/2002 10:20a <DIR> build 12/06/2001 10:33a 864 build.bat 10/26/2002 05:06p 431 build.properties.sample 10/25/2002 01:18a 753 build.sh 11/18/2002 01:41p 14,109 build.xml 11/20/2002 02:43p <DIR> classes 11/18/2002 01:41p <DIR> config 10/25/2002 12:33a 348 contributor.properties.sample 10/25/2002 12:33a 2,268 contributor.xml 11/20/2002 03:51p <DIR> CVS 11/01/2002 03:53p <DIR> deploy 11/18/2002 01:55p <DIR> dist 11/20/2002 03:51p <DIR> docs 11/20/2002 08:40p 15 fclean.bat 11/01/2002 01:52p 1,026 forrest.properties 11/20/2002 03:51p <DIR> java 12/06/2001 11:22a 2,743 LICENSE 12/06/2001 10:33a 230 README 11/18/2002 01:42p <DIR> src 11/01/2002 01:52p 3,668 status.xml 15 File(s) 28,797 bytes 12 Dir(s) 6,087,512,064 bytes free D:\xindice\current\xml-xindice>build Xindice Build System Building with classpath C:\j2sdk1.4.1_01\lib\tools.jar;.\java\lib\ant-1.5.1.jar; .\java\lib\commons-logging-1.0.1.jar;.\java\lib\infozone-tools.jar;.\java\lib\ja karta-oro-2.0.6.jar;.\java\lib\junit-3.8.1.jar;.\java\lib\junit-addons-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\xindice.jar;.\java\lib\xml-apis-1.0b3.j ar;.\java\lib\xmldb-api-20021118.jar;.\java\lib\xmldb-api-sdk-20021118.jar;.\jav a\lib\xmldb-xupdate.jar;.\java\lib\xmlrpc-1.1.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: 7 seconds D:\xindice\current\xml-xindice>
Verify the compilation
If the compile was succeeded, you will find the output files in the dist\ subdirectory.
D:\xindice\current\xml-xindice>dir dist Volume in drive D is Data Volume Serial Number is A3EB-9689 Directory of D:\xindice\current\xml-xindice\dist 11/18/2002 01:55p <DIR> . 11/18/2002 01:55p <DIR> .. 11/18/2002 01:55p 9,467 xindice-1.1b-examples.jar 11/20/2002 03:57p 392,842 xindice-1.1b.jar 11/20/2002 03:57p 2,421,719 xindice-1.1b.war 3 File(s) 2,824,028 bytes 2 Dir(s) 6,090,211,328 bytes free D:\xindice\current\xml-xindice>
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.