[Xapian-tickets] [Xapian] #774: libxapian_jni.jnilib installed to preposterous location
Xapian
nobody at xapian.org
Wed Jan 30 17:11:44 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 ryandesign):
Replying to [comment:1 olly]:
> (BTW, there should also be a `.jar` installed - not sure if you quoted
all the output there or just the start of it...)
Hmm, no, what I showed above is the entirety of what was installed. There
is a built/xapian.jar file that gets built by `make`, but it doesn't get
installed anywhere by `make install`.
> > Unfortunately I'm not familiar with Java. I don't know how a Java user
would use this jnilib file or where it should actually be installed to.
>
> That's essentially the problem here - we don't know where to install the
Java bindings in a usefully portable way, nor how to query the appropriate
paths from Java, so for now we install to that `built` subdirectory and
document that the user should copy the two files to the appropriate
place(s).
>
> E.g. for a Debian package I know we should install
`/usr/lib/jni/libxapian_jni.so` and `/usr/share/java/xapian.jar` but I
doubt that `$(libdir)/jni/` and `$(datarootdir)/java/` are correct on a
Mac - it's probably somewhere under `/Library/Java`.
Ah I see now that you do mention this in your java/index.html file:
> 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.
--
Ticket URL: <https://trac.xapian.org/ticket/774#comment:2>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list