Matlab install - Java permission denied

42,583

Solution 1

I've found the answer, no matter how weird it is. The problem was 64bit OS. When I tried with 32bit, Matlab installation worked and every other app I had previously trouble installing. So now I stick to 32bit.

Solution 2

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 3

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 4

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) `

Solution 5

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>

Share:
42,583

Related videos on Youtube

c0dehunter
Author by

c0dehunter

Updated on September 18, 2022

Comments

  • c0dehunter
    c0dehunter over 1 year

    Matlab version 2012. I know there are many threads about this, suggesting to chmod +x the following files (if you are in installation directory):

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

    I also chmodded the install file in root of installation directory. However, after running sudo ./install I still get:

    Preparing installation files ...
    Installing ...
    ./install: 1: eval: /tmp/mathworks_4880/sys/java/jre/glnxa64/jre/bin/java: Permission denied
    Finished
    

    How is this possible? :)

    • Admin
      Admin over 10 years
      If you have extracted the iso then you get this error. Try to mount it. Everything works well after that. (For R2013a Release)
  • Erro
    Erro over 11 years
    Then I can't help you I'm afraid. This was the suggestion I got from Mathworks support. Didn't really work for me either. Luckily for me I have to run dual boot on this computer, due to other heavy applications that run under windows only.
  • Ashish Manatosh Barik
    Ashish Manatosh Barik over 6 years
  • Chai T. Rex
    Chai T. Rex over 6 years
    The location of the JRE is probably not under /home/amb for other people.