You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by cbo19 <cb...@student.canterbury.ac.nz> on 2003/06/18 13:37:50 UTC

building addressbook example1

Hi,

Having troubles building the address book example1. I am using ant1.5. I
have set my class path to Z:/lib where I keep a copy of all my .jar
files. In particular, the following files included with XIndice,

xmldb-api-20021118.jar
xmldb-api-sdk-20021118.jar
xmldb-common.jar
xmldb-xupdate.jar

Trying to build example1.java gives a flury of compilation errors saying
"package org.xmldb.api.base does not exist".

The import calls on example 1 are as follows:

package org.apache.xindice.examples;
import org.xmldb.api.DatabaseManager;
import org.xmldb.api.base.Collection;
import org.xmldb.api.base.Database;
import org.xmldb.api.base.Resource;
import org.xmldb.api.base.ResourceIterator;
import org.xmldb.api.base.ResourceSet;
import org.xmldb.api.base.XMLDBException;
import org.xmldb.api.modules.XPathQueryService;

It appears to be spitting the dummy on all of these statements. I
thought that by including the xmldb api .jar files in my classpath then
it would find these imports. Clearly I thought wrong.

Please help. If you haven't already guessed I am a novice and appreciate
the help!

Thanks
Carl.



RE: building addressbook example1

Posted by Kevin Ross <Ke...@iVerticalLeap.com>.
I suggest you download the source from cvs (v1.1 to be released), and
simply use the eclipse ide.  Project files already exist in the project,
so compilation will be no problem.  Of course, if you use another ide,
your on your own.

In addition, the hierarchy is quite different, so for learning, please
use the code in cvs.  We are working on the release asap, to help
everyone.

-Kevin Ross

-----Original Message-----
From: CBO19@student.canterbury.ac.nz
[mailto:CBO19@student.canterbury.ac.nz] 
Sent: Wednesday, June 18, 2003 5:38 AM
To: XIndice Users
Subject: building addressbook example1

Hi,

Having troubles building the address book example1. I am using ant1.5. I
have set my class path to Z:/lib where I keep a copy of all my .jar
files. In particular, the following files included with XIndice,

xmldb-api-20021118.jar
xmldb-api-sdk-20021118.jar
xmldb-common.jar
xmldb-xupdate.jar

Trying to build example1.java gives a flury of compilation errors saying
"package org.xmldb.api.base does not exist".

The import calls on example 1 are as follows:

package org.apache.xindice.examples;
import org.xmldb.api.DatabaseManager;
import org.xmldb.api.base.Collection;
import org.xmldb.api.base.Database;
import org.xmldb.api.base.Resource;
import org.xmldb.api.base.ResourceIterator;
import org.xmldb.api.base.ResourceSet;
import org.xmldb.api.base.XMLDBException;
import org.xmldb.api.modules.XPathQueryService;

It appears to be spitting the dummy on all of these statements. I
thought that by including the xmldb api .jar files in my classpath then
it would find these imports. Clearly I thought wrong.

Please help. If you haven't already guessed I am a novice and appreciate
the help!

Thanks
Carl.