Java usually handles the suffixes automatically -- .so for unix variants, or .dll for windows variants, or .dylib for MacOS variants ... including any of these suffixes explicitly would break compatibility with the different OS'es.
Is it possible that your version of oracle jdk is not correctly configured for Ubuntu? Perhaps there is some way to tell Java what suffixes should be searched for? Perhaps that search algorithm is missing or broken in jdk8? This code has been working fine on java 5 and java 6, dating back ten years now; the breakage is not the code, but some install/config issue.
linas
changed the title
Java bindings
Orcale JDK8 library loading config bug
Jul 26, 2017
I'm using link-grammar-5.3.15.
This one didn't work for me:
https://github.com/opencog/link-grammar/blob/master/bindings/java/org/linkgrammar/LinkGrammar.java#L43
Even when I added
/usr/local/libto jvm props:I fixed it by replacing that line into:
Also, please not that in https://github.com/opencog/link-grammar/blob/master/bindings/java/org/linkgrammar/LinkGrammar.java#L43 jni is marked as
link-grammar-java. However I checked my/usr/local/liband found onlyliblink-grammar-java.soand other file with prefixliblink-...UPD. I'm using ubuntu 16.04 and oracle jdk 8.
The text was updated successfully, but these errors were encountered: