MGTM
MGTM

Reputation: 11

Error while loading shared libraries: libjli.so in Java

I have ElementaryOS installed. I am running Processing IDE in the terminal by running ./processing in the processing-3.3.4 directory. I'm getting this error:

java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

Upvotes: 1

Views: 16216

Answers (3)

Aamir
Aamir

Reputation: 725

File permission issue for me - executed below and worked fine

chmod 755 /path/to/java_sdk_17/bin/java

Upvotes: 0

Ron de Jong
Ron de Jong

Reputation: 1

Download Java SE Development Kit 8u192 in your home directory (click "Accept License Agreement")

Extract (in terminal):

tar xzvf ~/jdk-8u192-linux-x64.tar.gz

Create the symbolic links:

sudo ln -s -f ~/jdk1.8.0_192/bin/* /usr/bin/

Test:

java -version

Upvotes: 0

Robin Daugherty
Robin Daugherty

Reputation: 7524

This is a known issue that is being worked on. As of this moment, it doesn't look like they have released a fix, so I would try the previous version.


In the future, I recommend searching with Google for the specific error you're getting before posting to a forum. It can be hard to know what to search for, so here's an explanation of my process.

First I tried searching for "elementary os" processing cannot open shared object file "libjli.so" but since that didn't give me anything obvious, I assumed that this is not a widespread problem with Elementary OS. Note that I put quotes around "elementary os" and "libjli.so". This ensures that Google treats these as phrases, so pages with the word "elementary" and the word "os" will not match unless those two words are side-by-side.

Next I searched for processing ide cannot open shared object file "libjli.so" which gave me a link to the main Issues page on the github project. On that page, I searched for libjli.so which gave me one result, which is the issue I linked here.

I hope that helps you in the future.

Upvotes: 2

Related Questions