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.
1 2 3 | chmod +x sys/java/jre/glnxa64/jre/bin/java |
Install JRE if you don’t have it already.
1 2 3 | sudo apt-get install openjdk-7-jre |
Goto the MATLAB installation folder and invoke the installer with -javadir option
1 2 3 | sudo ./install -javadir /usr/lib/jvm/java-7-openjdk-amd64/jre |