[Xapian-tickets] [Xapian] #774: libxapian_jni.jnilib installed to preposterous location
Xapian
nobody at xapian.org
Wed Sep 21 03:36:05 BST 2022
#774: libxapian_jni.jnilib installed to preposterous location
------------------------------------+---------------------------
Reporter: Ryan Schmidt | Owner: (none)
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 Betts):
> > 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.
I found the answer to this part at least - both the .jar and JNI library
should go there:
Java can be extended by adding custom.jar, .zip, and .class files, as
well as native JNI libraries, into an extensions directory. On some
platforms this is designated by the java.ext.dir system property. In OS X,
put your extensions in `/Library/Java/Extensions/`.
from
https://developer.apple.com/library/archive/documentation/Java/Conceptual/Java14Development/01-JavaOverview/JavaOverview.html#//apple_ref/doc/uid/TP40001883-SW1
(I've mentioned this in our documentation in
e6d1bb6d80dd751c797151a4e33690d7b6466e90.)
The note there about `java.ext.dir` also sounds promising, but this
property seems to just be `null` for me on Linux (checked using the
`tmptest.java` program above with the obvious extra line added). Search
for that online suggests there's a `java.ext.dirs` property but that's
also `null` for me.
Sadly I still haven't found a way to actually determine automatically
where to install these files to, but hopefully the above helps with your
packaging if you didn't already resolve this.
--
Ticket URL: <https://trac.xapian.org/ticket/774#comment:4>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list