[Xapian-discuss] Has anyone gotten Xapian java bindings to work with Eclipse?

James Aylett james-xapian at tartarus.org
Sun Jun 22 03:15:23 BST 2008


On Sat, Jun 21, 2008 at 11:44:29AM -0400, Jim wrote:

> Once I get a decent deployment, this message pops up when I try to run 
> the servlet via something like http://localhost:8189/XapianTest/SmokeTest
> 
> java.lang.UnsatisfiedLinkError: swig_module_init
> 	org.xapian.java_swig.XapianJNI.<clinit>(XapianJNI.java:501)
> 	java.lang.Class.initializeClass(libgcj.so.81)
> 	org.xapian.java_swig.Stem.<init>(Stem.java:37)
> 
> LinkError seems to tell me I might be missing a library somewhere.
> In the soure I see the swig_module_init entry in the XapianJNI class
> and that class is in the deployed war file.  Since Stem is being
> found, I don't think it's a problem of tomcat not finding the jar
> but I don't know where else to look.

I'm guessing that UnsatisfiedLinkError means that swig_module_init is
referenced in the C/C++ layer and is unsatisfied, and is nothing to do
with the swig_module_init in a Java wrapper class.

This is GCJ, and not javac, though, so I may be wrong. (If I
understand this right.)

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list