MATLAB Answers

0

MATLAB startup crashes with El Capitan OS X

Asked by amin rasoulof on 16 Jun 2016
Latest activity Answered by Anish Mitra on 27 Jun 2016
I just upgraded my mac system to El Capitan and with Matlab 2014b I have the same problem that the users with Matlab 2014a and earlier had with Yosemite:
I tried to solve this issue by following this
but I am not happy with changing my OS X version as I am not sure about the consequences. Is there any other way that I can solve this problem? For what it is worth, I transferred MATLAB 2014b from my Mavericks by Time Machine. I tried to fix the problem with these patches
but there is no 2014b version and after running the patch is complains about the right version. Here is the screenshot of the error:

  0 Comments

Sign in to comment.

1 Answer

Answer by Anish Mitra on 27 Jun 2016

This might be because of the Java version that R2014b is using. Can you start MATLAB with the "-nodesktop" flag, and then check the Java version :
>> version -java
This should be 1.7.0_55.
If it is not then you could check the following :
1) The MATLAB_JAVA environment variable is set. You can check this by opening up Terminal and typing the following:
echo $MATLAB_JAVA
If this is set, you will need to find where it is set and remove that command. You can remove it from an individual Terminal session with the command:
unset MATLAB_JAVA
And then launch MATLAB with:
/Applications/MATLAB_R2014b.app/bin/matlab
2) If MATLAB_JAVA was not set, it may be set by the shortcut you are using to launch MATLAB. You may have to delete this shortcut and create a new one.
3) If starting MATLAB from the Terminal in which MATLAB_JAVA is not set still causes the issue, it is possible that there is a softlink or shortcut in your Java folder located here:
/Applications/MATLAB_R2014b.app/sys/Java/jre/maci64/
The only folder in there should be 'jre' and it should not be a shortcut or softlink.

  0 Comments

Sign in to comment.