This is for macOS Intel.


MATLAB and no JDK

Note:  Matlab 24.2 and up, should be allowed in  privacy & security > 

Files & Folders.  Otherwise matlab will just quit or appear to be wedged.


============================================

macOS Intel

============================================

The instructions are meant to be done within a shell with root privileges.   We assume to start you have

done    sudo su - root    to acquire a root shell. 


#: Install matlab - mac intel

#: ==========================

#: arm version - 25.2 and up

#: Put binaries in your path.

#: The symlinks use the fact /usr/local/bin  is in user path.


ver=25.2

curl https://www.cns.nyu.edu/mac/matlab$ver-intel.tgz | tar xz -C /Applications


ln -s /Applications/MATLAB$ver.app /usr/local/matlab$ver

mkdir /usr/local/bin

cd /usr/local/bin

ln -s ../matlab$ver/bin/matlab matlab$ver



#: Do this once  [optional]

#: ===============

#: set the default matlab binaries 

def=25.2

cd /usr/local

ln -s matlab$def matlab

cd /usr/local/bin

ln -s ../matlab/bin/matlab



#: Remove vulnerable java

#: ======================

#: tar up the java that comes with matlab because it is vulnerable.

#: This is unnecessary if you download our prebuilt version above.

#: ver=25.2         

cd /usr/local/matlab$ver/sys/java

tar czf jre.tgz jre

rm -rf jre