Skip to content

Instantly share code, notes, and snippets.

@nonohry
Created June 20, 2017 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nonohry/f8bf3323475dd7cb9cd5f1361b505851 to your computer and use it in GitHub Desktop.
Save nonohry/f8bf3323475dd7cb9cd5f1361b505851 to your computer and use it in GitHub Desktop.
Install Matlab on Mac
To install on MoLi/Mavericks/Yosemite:
1) Check if you have Java SE 6 for x86_64.
From the Mac terminal, you can use this command to check:
/usr/libexec/java_home -V
If you don't have it, install it from http://support.apple.com/kb/DL1572
2) After calling the "/usr/libexec/java_home -V", note the directory where Java SE 6 is located. Mine was "/Library/Java/JavaVirtualMachines/jdk1.6.0.jdk/Contents/Home"
3) Find the install file from the Matlab installation directory. Drag it to your Terminal, insert a space, then type "-javadir", another space, then the directory where Java SE6 was. It should look something like this (on one line):
/Users/asdf/Desktop/mathworks_downloads/MATLAB2013/install -javadir /Library/Java/JavaVirtualMachines/jdk1.6.0.jdk/Contents/Home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment