Matlab install - Java permission denied

Solution 1:

Even at your 64bit system, the installation might as well work out coz i have just successfully installed Matlab2012a in mine... here's what i did.. :

1.in the /matlab-install-files/sys/java/jre/glnx86/jre/bin/java ,i did

 sudo chmod +x ./java

2.within the installation directory:

 sudo chmod +x ./install

3.finally, install by:

 ./install 

or

 sudo ./install

Solution 2:

i had the same problem with Matlab 2014a, i tried to change permissions of the

    sys/java/jre/glnxa64/jre/bin/java

but it wouldn't i still don't know the reason why, so i took the whole sys/java/jre/glnxa64/jre directory and copied it to my Desktop where i changed the permissions to

    chmod 777 /home/$USER/Desktop/jre/bin/java

and i started the installation with

    sudo bash ./install -javadir '/home/$USER/Desktop/jre'

and it worked perfectly

Solution 3:

Installing Matlab (which is 32-bit) on 64-bit Ubuntu causes this problem. You can try this command and proceed like normal again.

ln -s YOURMATLABFOLDER/sys/java/jre/glnx86 YOURMATLABFOLDER/sys/java/jre/glnxa64

Solution 4:

I did the following on my 64-bit Ubuntu and it worked.

chmod +x <MATLAB_DIRECTORY>/sys/java/jre/glnx86/jre/bin/java

<MATLAB_DIRECTORY> is the directory where you have all the MATLAB installation files in.

Then, in the install script (<MATLAB_DIRECTORY>/install), change line 441 from

JRE_LOC=

to

JRE_LOC="<MATLAB_DIRECTORY>/sys/java/jre/glnx86/jre/"

And then run ./install in the <MATLAB_DIRECTORY>

Solution 5:

I tried every solution in here and couldn't install 32-Bit Matlab on 64-bit Linux.

Then I tried this:

In order to install 32-bit MATLAB on a 64-bit Linux machine, it is necessary to use the -glnx86 flag:

./install -glnx86

The -glnx86 flag is required for starting MATLAB. If you are running a license manager, it is required for all license manager scripts as well (lmstart, lmdown, lmstat, etc...).

Some users have problems loading the JRE when running in this configuration. Creating a symlink in $MATLAB/sys/java/jre named 'glnxa64' pointing to 'glnx86' should resolve this issue. You can do this with the following command:

ln -s $MATLAB/sys/java/jre/glnx86 $MATLAB/sys/java/jre/glnxa64

(where $MATLAB is the MATLAB installation folder) `