Skip to content

[SOLVED] error while loading shared libraries: libjli.so

How to fix Java problem installing Matlab 2012a/2012b (64-bit) in Ubuntu 12.04 (64 bit)?
If you are trying to install Matlab 2012a/2012b on ubuntu 12.04 64bit you may get this error “error while loading shared libraries: libjli.so”. I had the same problem and was able to fix it with following steps. Open terminal Ctrl+Alt+T and run following commands.

Make sure Matlab’s java is executable.

chmod +x sys/java/jre/glnxa64/jre/bin/java

Install JRE if you don’t have it already.

sudo apt-get install openjdk-7-jre

Goto the MATLAB installation folder and invoke the installer with -javadir option

sudo ./install -javadir /usr/lib/jvm/java-7-openjdk-amd64/jre

matlab-2012b-00

matlab-2012b-01