Brilliant!  Thanks very much indeed for your help.  You've saved me hours of 
mental anguish.

Thanks again

Chris Kite

Quoting "Willis, Paul A." <[EMAIL PROTECTED]>:

> Don't you need to do something like this for classpath??
> 
> set
> classpath=%XINDICE_HOME%\java\lib\xmldb.jar;%XINDICE_HOME%\java\lib\xindice.
> jar;%XINDICE_HOME%\java\lib\openorb-1.2.0.jar;%XINDICE_HOME%\java\lib\xerces
> -1.4.3.jar;%XINDICE_HOME%\java\lib\xalan-2.0.1.jar
> 
> In other words, add all jars to classpath as a semi-colon separated list.
> Also, I don't think you should include the trailing 'dots' as part of the
> jar paths.
> 
> I did something similar in UNIX.
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 29, 2004 9:07 AM
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Subject: Xindice 1.0 - Problems setting classpaths
> 
> 
> 
> 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