This is for Linux.


MATLAB and no JDK


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

LINUX

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

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 - linux

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

#: linux 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/linux/matlab$ver.tgz | tar xz -C /usr/local


cd /usr/local/bin

ln -s /usr/local/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 /usr/local/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