Installing Matlab 2012a in Ubuntu 12.04 java problem

1 view (last 30 days)
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: libjli.so: cannot open shared object file: No such file or directory
Finished
Could you please help .

Answers (2)

Mallik
Mallik on 7 Sep 2012
Edited: 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!

mosi
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/

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!