[Xapian-devel] Java Swig bindings - error in SmokeTest
Charlie Hull
charlie at juggler.net
Mon Apr 7 14:46:06 BST 2008
James Aylett wrote:
> On Mon, Apr 07, 2008 at 02:02:27PM +0100, Charlie Hull wrote:
>
>> I've now got a MSVC make file for the Java Swig bindings working -
>> except it doesn't quite pass the Smoke Test. The error is:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: MyExpandDecider
>> Caused by: java.lang.ClassNotFoundException: MyExpandDecider
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
> Is that the *entire* backtrace? It doesn't seem to contain any user
> code at all. Which release is that? Your line numbers don't seem to
> match my 1.0.6 copy. (Via SVN, so I may have something wrong of course.)
>
> J
>
Yes, that's all I have. I added -verbose and got this (I've clipped out
the bits that don't seem to relate). I really don't know Java, so shout
if you can suggest a way to get more information.
...
[Loaded SmokeTest from
file:/C:/work/xapian/xapian-releases/xapian-core-1.0.6/win32/Release/Java-Swig/]
[Loaded sun.misc.URLClassPath$JarLoader$2 from shared objects file]
[Loaded Database from
file:/C:/work/xapian/xapian-releases/xapian-core-1.0.6/win32/Release/Java-Swig/xapian_jni.jar]
[Loaded WritableDatabase from
file:/C:/work/xapian/xapian-releases/xapian-core-1.0.6/win32/Release/Java-Swig/xapian_jni.jar]
[Loaded ExpandDecider from
file:/C:/work/xapian/xapian-releases/xapian-core-1.0.6/win32/Release/Java-Swig/xapian_jni.jar]
Exception in thread "main" java.lang.NoClassDefFoundError: MyExpandDecider
Caused by: java.lang.ClassNotFoundException: MyExpandDecider
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
...
Cheers
Charlie
More information about the Xapian-devel
mailing list