Dear All

I'm trying to develop some standard Java applications to interact with Xindice 
1.0.  I have set the classpaths as stated in the documentation

set classpath=%XINDICE_HOME%\java\lib\xmldb.jar.;
set classpath=%XINDICE_HOME%\java\lib\xindice.jar.;
set classpath=%XINDICE_HOME%\java\lib\openorb-1.2.0.jar.;
set classpath=%XINDICE%HOME%\java\lib\xerces-1.4.3.jar.;
set classpath=%XINDICE_HOME%\java\lib\xalan-2.0.1.jar.;

When I try and compile the Example1 used in the documentation, the compiler 
complains about "cannot resolve symbol", complaining that it cannot find the 
imported classes I used eg

Example1.java:36: cannot resolve symbol
symbol  : class ResourceSet
location: class Example1
      ResourceSet resultSet = service.query(xpathQuery);
      ^

Example1.java:43: cannot resolve symbol
symbol  : class XMLDBException
location: class Example1
    catch(XMLDBException e) {
          ^
I used the followng import statements as advised:

import org.xmldb.api.base.*;
import org.xmldb.api.modules.*;
import org.xmldb.api.*;

The .jar files were located within the java\lib directory

Can anyone point me in the right direction?

          


Reply via email to