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:
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:
And then launch MATLAB with:
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:
The only folder in there should be 'jre' and it should not be a shortcut or softlink.