0

I downloaded Arduino IDE and extracted it. When trying to run it:

./arduino

It throws up an error:

/opt/arduino-1.6.9/java/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

I then tried:

sudo apt-get install openjdk-8-jre-headless

But still the same error. No change if I use sudo.

1 Answer 1

0

Try the following:

rm /usr/bin/java
update-alternatives --config java

Run as sudo if required.

11
  • After running the second command, I am getting: There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing to configure. update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java because link group java is broken And still the same error when trying to run arduino
    – Fauzan
    Commented Jun 28, 2016 at 15:59
  • Can you please post the output of strace -f java -version?
    – Michael D
    Commented Jun 28, 2016 at 17:04
  • It is too long, more than 200k characters, cant post here.
    – Fauzan
    Commented Jun 29, 2016 at 8:31
  • On pastebin: pastebin.com/sythD16e
    – Fauzan
    Commented Jun 29, 2016 at 8:40
  • I still think it is a link problem. Try this rm -rf /usr/bin/java and ln -s /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java /usr/bin/java. Next time while posting comments, please format it accordingly. It's difficult to read the sys output on your previous comment.
    – Michael D
    Commented Jun 29, 2016 at 10:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .