Matlab 2014a cannot locate Java on Ubuntu

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 Comments

I have the same trouble, I was trying to install MatlabR2013b on ubuntu 13.10 for use it in Coursera class but appear the following error
Error: Cannot locate Java Runtime Environment (JRE). The directory /home/juan/mathworks_downloads/sys/java/jre/glnx86/jre does not exist.
And that's right, glnx86 does not exist. I don't know how to change it to glnx64
I have the same problem... any work around/fix for that?
I contacted support, their answer (that was indeed the problem/solution for me) is that this happens when you try to install the 64bit Linux Matlab on a 32bit computer/OS. I don't think there is a 32bit Matlab for Linux.
@Acton You can check below link to install 32 bit MATLAB on 64 bit linux machine. http://www.mathworks.com/matlabcentral/answers/101364
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

Sign in to comment.

Answers (1)

julien
julien on 15 Aug 2014
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

Categories

Products

Asked:

on 20 Mar 2014

Commented:

on 16 Feb 2015

Community Treasure Hunt

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

Start Hunting!