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
.