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 Center および File ExchangeIntroduction 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