Thanks for your advice. I tried what you asked me to do, if I compile all of
examples together. I seem not to have any error message. But the time I try to
run one of these examples I am getting the error message below:
C:\jim\XMLDAT~1\XINDIC~1.1B4\TEMPLA~1>javac *.java
C:\jim\XMLDAT~1\XINDIC~1.1B4\TEMPLA~1>java CreateCollection
Exception in thread "main" java.lang.NoClassDefFoundError: CreateCollection (wro
ng name: org/apache/xindice/examples/CreateCollection)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
-----Original Message-----
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 1:44 PM
To: [email protected]
Subject: Re: Error messagr when compiling
Mabanza, N wrote:
>Hii Everyone,
>
>I am using xindice-1.1b4. I am having the following error message when I am
>compiling the CreateCollection.java example
>
>C:\jim\XmlDatabases\xindice-1.1b4>javac CreateCollection.java
>CreateCollection.java:29: cannot resolve symbol
>symbol : class AbstractExample
>location: class org.apache.xindice.examples.CreateCollection
>public class CreateCollection extends AbstractExample {
> ^
>CreateCollection.java:40: cannot resolve symbol
>symbol : method getCollection (java.lang.String)
>location: class org.apache.xindice.examples.CreateCollection
> collection = getCollection("xmldb:xindice-embed:///db/");
> ^
>2 errors
>
>Can anyone have an idea how to solve this problem..
>
>
You need to compile AbstractExample also. Even better, you need to
compile all example classes at once. Read some Java intro book for more
details on this.
Vadim