MATLAB Answers


Installing Matlab 2012a in Ubuntu 12.04 java problem

Asked by Sabyasachi Deyati on 7 Jul 2012
Latest activity Answered by mosi
on 27 Sep 2014

Hi ,

I was trying to install matlab2012a in Ubuntu 12.04 . I am getting the following java error .

sabyasachi@sabyasachi-ubuntu:~/Downloads/R2012a_UNIX$ sudo ./install -v
[sudo] password for sabyasachi: 
Preparing installation files ...
->  DVD                 = /home/sabyasachi/Downloads/R2012a_UNIX
->  ARCH                = glnxa64
->  DISPLAY             = :0
->  TESTONLY            = 0
->  JRE_LOC             = /tmp/mathworks_3317/sys/java/jre/glnxa64/jre
->  LD_LIBRARY_PATH     = /tmp/mathworks_3317/bin/glnxa64
Command to run:
/tmp/mathworks_3317/sys/java/jre/glnxa64/jre/bin/java  -splash:"/home/sabyasachi/Downloads/R2012a_UNIX/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_3317/sys/java/jre/glnxa64/jre/lib/ext:/tmp/mathworks_3317/java/jar:/tmp/mathworks_3317/java/jarext:/tmp/mathworks_3317/java/jarext/axis2/:/tmp/mathworks_3317/java/jarext/guice/:/tmp/mathworks_3317/java/jarext/webservices/ com/mathworks/professionalinstaller/Launcher -root "/home/sabyasachi/Downloads/R2012a_UNIX" -tmpdir "/tmp/mathworks_3317" 
Installing ...
/tmp/mathworks_3317/sys/java/jre/glnxa64/jre/bin/java: error while loading shared libraries: cannot open shared object file: No such file or directory

Could you please help .


Log in to comment.

2 Answers

Answer by Mallik
on 7 Sep 2012
Edited by Mallik
on 7 Sep 2012

You need to make the java files executable in order to install in Ubuntu 12.04.

Execute the commands: cd /sys/java/jre/glnxa64/jre/bin,

chmod +x java

This will make java executable. Other easier way is to navigate to the '/sys/java/jre/glnxa64/jre/bin' folder and right-click on 'java' file. Click 'Properties'. In the Permissions tab, check the box against 'Allow executing file as a program'.

Note: You cannot change the java permission if the installer files are located on a drive with NTFS file system. The files necessarily need to be on a drive with ext3 file system.

Now start the installation. Enjoy!



Log in to comment.

Answer by mosi
on 27 Sep 2014

You have some problem with java. Try this one:

copy your Matlab Setup-files in a local drive like '/home/user/Desktop/Matlab':

install oracle-java: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer sudo apt-get install oracle-java8-set-default

then: sudo ./install -javadir /usr/lib/jvm/java-8-oracle/


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today