[Xapian-tickets] [Xapian] #774: libxapian_jni.jnilib installed to preposterous location

Xapian nobody at xapian.org
Wed Jan 30 22:13:21 GMT 2019


#774: libxapian_jni.jnilib installed to preposterous location
------------------------------------+--------------------------
 Reporter:  ryandesign              |             Owner:
     Type:  defect                  |            Status:  new
 Priority:  normal                  |         Milestone:
Component:  Xapian-bindings (Java)  |           Version:  1.4.9
 Severity:  normal                  |        Resolution:
 Keywords:                          |        Blocked By:
 Blocking:                          |  Operating System:  All
------------------------------------+--------------------------

Comment (by olly):

 > > on Mac OS X you can copy [the JNI library] into
 `/Library/Java/Extensions/`

 > I can certainly try putting the jnilib file there. Is that also the
 correct place to put the jar file or does that go somewhere else? I'll see
 if I can get your examples to work with that.

 I'm not sure about the `.jar`.

 It's possible to query java for these locations, but sadly the results
 don't seem to be suitable for automatically determining where to install
 these files.  However they may provide insight:

 {{{
 $ cat tmptest.java
 public class tmptest {
     public static void main(String[] args) {
         System.out.println(System.getProperty("java.class.path"));
         System.out.println(System.getProperty("java.library.path"));
     }
 }
 $ javac tmptest.java
 $ java tmptest
 .
 /usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-
 gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
 }}}

 The output above is for Debian unstable where the class path appears to be
 just the current directory (which doesn't seem right).  The library path
 is more helpful, but starts with a directory which doesn't actually exist.

--
Ticket URL: <https://trac.xapian.org/ticket/774#comment:3>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list