castorini / anserini

Anserini is a Lucene toolkit for reproducible information retrieval research
http://anserini.io/
Apache License 2.0
1.03k stars 457 forks source link

Pyjunis does not support fatjar compiled with java 11 #805

Closed Impavidity closed 4 years ago

Impavidity commented 5 years ago

When I compile with java 11 and use the fat-jar in pyjunis, some errors happen.

SystemError: Error calling dlopen(b'/home/p8shi/jdk-11.0.4/jre/lib/amd64/server/libjvm.so': b'/home/p8shi/jdk-11.0.4/jre/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory'
tuzhucheng commented 5 years ago

You need to do something like this:

mkdir -p /usr/lib/jvm/java-1.11.0-openjdk-amd64/jre/lib/amd64/server/
ln -s /usr/lib/jvm/java-1.11.0-openjdk-amd64/lib/server/libjvm.so /usr/lib/jvm/java-1.11.0-openjdk-amd64/jre/lib/amd64/server/libjvm.so
lintool commented 4 years ago

Closing, consolidating with #832