If you are new to Java and packages as well, I'd say that you have a mismatch
between the package declaration and your firectory structure. Look up how 
packages
work in Java, in a Java book or on the net.

Nina

> I am still new with Xindice. I have installed the version 1.0 using Windows.. 
> All
> these examples compile okay, but if I try to run them (examples provided with 
> the
> documentation), I am having the following error message..
>
> Exception in thread "main" java.lang.NoClassDefFoundError: Example1 (wrong 
> name:
>  org/apache/xindice/examples/Example1)
>         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)
>
> Can any one help?
> thanks!
>



Reply via email to