java.lang.UnsatisfiedLinkError: org.brotli.wrapper.enc.EncoderJNI.nativeCreate([J)Ljava/nio/ByteBuffer #215

Open
opened 2026-01-29 20:40:02 +00:00 by claunia · 0 comments
Owner

Originally created by @vaneri on GitHub (Feb 28, 2018).

Hello,

Here are the steps that I did so far:

  • CMAKE => /out/ folder has been created with an /out/installed folder containing the result of the installation
  • cp -r /out/install /usr/
    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

Originally created by @vaneri on GitHub (Feb 28, 2018). Hello, Here are the steps that I did so far: - CMAKE => /out/ folder has been created with an /out/installed folder containing the result of the installation - cp -r /out/install /usr/ 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#215