Matlab 2014a cannot locate Java on Ubuntu
5 次查看(过去 30 天)
显示 更早的评论
Ubuntu 10.10 and Ubuntu 12.04
I (and many other people on google) have problems installing Matlab R2014a on Ubuntu Server.
1) sudo ./install it gives the following message:
Error: Cannot locate Java Runtime Environment (JRE). The directory /home/sysadmin/Downloads/matlab-install-2014a/bin/glnx86/jre does not exist.
2) When running with full path:
sudo Downloads/matlab-install-2014a/install -javadir /home/sysadmin/Downloads/matlab-install-2014a/sys/java/jre/glnxa64/jre/
Preparing installation files ... cp: cannot stat `/home/sysadmin/Downloads/matlab-install-2014a/bin/glnx86/*': No such file or directory
Installing ... /tmp/mathworks_26955/sys/java/jre/glnx86/jre/bin/java: 1: Syntax error: end of file unexpected (expecting ")") Finished
3) when changing the folder name from glnxa86 to glnx86 it gives same result:
sudo Downloads/matlab-install-2014a/install -javadir /home/sysadmin/Downloads/matlab-install-2014a/sys/java/jre/glnxa64/jre/
Preparing installation files ... cp: cannot stat `/home/sysadmin/Downloads/matlab-install-2014a/bin/glnx86/*': No such file or directory
Installing ... /tmp/mathworks_27101/sys/java/jre/glnx86/jre/bin/java: 1: Syntax error: end of file unexpected (expecting ")") Finished
4) sudo Downloads/matlab-install-2014a/install -v -javadir /home/sysadmin/Downloads/matlab-install-2014a/sys/java/jre/glnxa64/jre/
Preparing installation files ...
cp: cannot stat `/home/sysadmin/Downloads/matlab-install-2014a/bin/glnx86/*': No such file or directory
-> DVD = /home/sysadmin/Downloads/matlab-install-2014a
-> ARCH = glnx86
-> DISPLAY = localhost:11.0
-> TESTONLY = 0
-> JRE_LOC = /tmp/mathworks_27167/sys/java/jre/glnx86/jre
-> LD_LIBRARY_PATH = /tmp/mathworks_27167/bin/glnx86
Command to run: /tmp/mathworks_27167/sys/java/jre/glnx86/jre/bin/java -Xmx512m -splash:"/home/sysadmin/Downloads/matlab-install-2014a/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_27167/sys/java/jre/glnx86/jre/lib/ext:/tmp/mathworks_27167/java/jar:/tmp/mathworks_27167/java/jar/ko_KR:/tmp/mathworks_27167/java/jar/zh_CN:/tmp/mathworks_27167/java/jar/ja_JP:/tmp/mathworks_27167/java/jarext:/tmp/mathworks_27167/java/jarext/guice:/tmp/mathworks_27167/java/jarext/webservices:/tmp/mathworks_27167/java/jarext/webservices/ws_client_core:/tmp/mathworks_27167/java/jarext/webservices/mcr_dws_client:/tmp/mathworks_27167/java/jarext/axis2 com/mathworks/professionalinstaller/Launcher -root "/home/sysadmin/Downloads/matlab-install-2014a" -tmpdir "/tmp/mathworks_27167"
Installing ...
/tmp/mathworks_27167/sys/java/jre/glnx86/jre/bin/java: 1: Syntax error: end of file unexpected (expecting ")") Finished
PLease help!
5 个评论
Jay Byun
2014-6-26
@Acton You can check below link to install 32 bit MATLAB on 64 bit linux machine. http://www.mathworks.com/matlabcentral/answers/101364
nitin dhiman
2015-2-16
I am also getting similar error for Linux64bit R014a on Ubuntu 12.043
:~/Downloads/matlab_R2014b_glnxa64$ ./install
./install: 1: eval: /home/nitin/Downloads/matlab_R2014b_glnxa64/bin/glnx86/install_unix: not found
回答(1 个)
julien
2014-8-15
Hi, similar issue but with different error message & solution does not seem to work
first attempt:
./MATLAB/install --------------------------------------------------------------------------- Error: Cannot locate Java Runtime Environment (JRE). The directory /home/poipoi/MATLAB/sys/java/jre/unknown/jre does not exist. ---------------------------------------------------------------------------
then looikng at the solutions above, I tried the below: sudo ./MATLAB/install -glnx86 --------------------------------------------------------------------------- Error: Cannot locate Java Runtime Environment (JRE). The directory /home/poipoi/MATLAB/sys/java/jre/unknown/jre does not exist. ---------------------------------------------------------------------------
NOt sure why it is looking for a directory with "unknown" but then I tried:
sudo ./MATLAB/install -glnx86 -v -javadir /home/poipoi/MATLAB/sys/java/jre/glnxa64/jre/ Preparing installation files ... cp: cannot stat `/home/poipoi/MATLAB/bin/unknown/*': No such file or directory -> DVD = /home/poipoi/MATLAB -> ARCH = unknown -> DISPLAY = :1 -> TESTONLY = 0 -> JRE_LOC = /tmp/mathworks_24941/sys/java/jre/unknown/jre -> LD_LIBRARY_PATH =
Command to run: /tmp/mathworks_24941/sys/java/jre/unknown/jre/bin/java -Xmx512m -splash:"/home/poipoi/MATLAB/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_24941/sys/java/jre/unknown/jre/lib/ext:/tmp/mathworks_24941/java/jar:/tmp/mathworks_24941/java/jar/ko_KR:/tmp/mathworks_24941/java/jar/zh_CN:/tmp/mathworks_24941/java/jar/ja_JP:/tmp/mathworks_24941/java/jarext:/tmp/mathworks_24941/java/jarext/webservices:/tmp/mathworks_24941/java/jarext/webservices/mcr_dws_client:/tmp/mathworks_24941/java/jarext/webservices/ws_client_core:/tmp/mathworks_24941/java/jarext/guice:/tmp/mathworks_24941/java/jarext/axis2 com/mathworks/professionalinstaller/Launcher -root "/home/poipoi/MATLAB" -tmpdir "/tmp/mathworks_24941" "-glnx86"
Installing ... /tmp/mathworks_24941/sys/java/jre/unknown/jre/bin/java: 1: /tmp/mathworks_24941/sys/java/jre/unknown/jre/bin/java: Syntax error: end of file unexpected (expecting ")") Finished
I must also say that I am using ubunntu 12.04 with crouton on a chromebook HP11
any idea?
thanks
0 个评论
另请参阅
类别
在 Help Center 和 File 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!