Installing Matlab 2012a in Ubuntu 12.04 java problem

조회 수: 1 (최근 30일)
Sabyasachi Deyati
Sabyasachi Deyati 2012년 7월 7일
답변: mosi 2014년 9월 27일
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 .

답변 (2개)

Mallik
Mallik 2012년 9월 7일
편집: Mallik 2012년 9월 7일
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 2014년 9월 27일
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/

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by