mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
java.lang.UnsatisfiedLinkError: org.brotli.wrapper.enc.EncoderJNI.nativeCreate([J)Ljava/nio/ByteBuffer #215
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vaneri on GitHub (Feb 28, 2018).
Hello,
Here are the steps that I did so far:
supposedly adding all the libraries in the path that can be discovered
As this was not working and I was getting the exception UnsatisfiedLinkError; I tried the following:
Loading individually the libraries:
System.load(new java.io.File("/usr/lib/libbrotlicommon.so").getAbsolutePath());
System.load(new java.io.File("/usr/lib/libbrotlidec.so").getAbsolutePath());
System.load(new java.io.File("/usr/lib/libbrotlienc.so").getAbsolutePath());
This didn't help either.
I try to change the path java.library.path and use the /usr/lib but this didn't help either.
Do you have any clue on what I am doing wrong in the JNI loading?
I am using :
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
and
IntelliJ IDEA as IDE
Thanks