When will MATLAB be updated for OS X Yosemite?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
When OS X Yosemite launches in the upcoming days (perhaps even today), will it be safe to update to OS X Yosemite from Mavericks? I ran the Yosemite Beta and MATLAB wasn't working so I had to downgrade back to Mavericks and MATLAB worked perfectly. I am aware of the workarounds for Yosemite, but will those work for the official release of Yosemite?
8 Comments
Fan
on 17 Oct 2014
I just upgraded to Yosemite public release, IT DOES NOT WORK.
Parth Patel
on 17 Oct 2014
Parth Patel
on 17 Oct 2014
Richard McGinley
on 19 Oct 2014
Edited: Richard McGinley
on 19 Oct 2014
I bought Release 2014a less than 3 months ago. I'm not rolling back my OS 10.10 upgrade. So I guess I'm just screwed. Fortunately my Wolfram applications still work. They seem to have a more customer-oriented business model. Oh well I guess it's time for a social media blitz.
Richard McGinley
on 21 Oct 2014
Edited: Richard McGinley
on 21 Oct 2014
On re-attack: The patch worked for me. I'm running OS 10.10 and MATLAB Rel 2014a. It was fairly painless.
Leo
on 22 Oct 2014
What Austin said below worked for me(2012a student) --reinstall XQuartz
-Re-installing XQuartz. I'm tempted to say this is the main reason why older versions of MATLAB are running into the issue as, after trying to open MATLAB in terminal, my computer indicated that the X11 files were missing after the update to Yosemite."
Mohammad reza nilchiyan
on 27 Oct 2014
Hi there, I installed new version of Os X Yosemite, but my Matlab 2012a doesn't work .could you please let me know how can I turn this version of Os X to my previous version? thanks
Answers (7)
Bhanu
on 17 Oct 2014
5 votes
I was having the problem with MATLAB R2010a (already installed on my system) crashing when attempting to launch on 10.10 public release as well, but I just got it working without any need for Mathworks' patch or any strange modifications to system files! Maybe this will work with other versions too. Here's how:
1. Install latest release of X11/XQuartz (2.7.7). For some reason my X11 hadn't autoupdated.
2. Install legacy Java version 6 from Apple
3. Create symlink to /opt/X11 folder in /usr/
Instructions: open terminal, execute command exactly as follows (type password when asked): sudo ln -s /opt/X11/ /usr/X11
Now launch MATLAB and it should work. I noticed when launching MATLAB from /Applications/MATLAB_R2010aSV.app/bin/matlab -maci in terminal that it gave an error about not loading /usr/X11/lib/libXext.6.dylib; we can see that it is looking for a folder /usr/X11, but this is not present. Hence we create the symlink and everything works!
10 Comments
This solution worked well for me, thanks for posting. Unfortunately, I cannot launch matlab by clicking the icon anymore, but I am able to type the command into terminal. So, from start to finish, what I needed to do was:
1. Install the latest XQuartz
2. Install the legacy Java version 6
3. Symlink /opt/X11 so that the contents can be found in /usr/X11
4. Launch matlab with the command:
/Applications/MATLAB_R2010b.app/bin/matlab &
Note that the ampersand at the end is not necessary, but will allow you to enter other commands or close the terminal without disrupting Matlab. The command will also looks slightly different for other versions of Matlab.
I found some other solutions that involve changing a system file parameter to version 10.90, but I think that's a bad idea because it could cause problems with other apps in the future or be overwritten by another software update.
Javier
on 19 Oct 2014
To solve this problem just edit the file Info.plist located at /Applications/MATLAB_R2010b.app/Contents/Info.plist, changing the value of key CFBundleVersion from 2.X to 9.X (I guess in later versions this number is 3.X, 4.X, etc. Changing it to 9.X should solve this problem). If it doesn't work try changing also the LSMinimumSystemVersion key to 10.10.0.
Hope this helps.
Chao
on 19 Oct 2014
Have tried this method, but it does not work on matlab2012b, any other solutions?
Donald Li
on 19 Oct 2014
me too, my 2012b does not work too
Philip Valencia
on 20 Oct 2014
Thanks Bhanu / Javier - I thought I'd be stuffed. Modded the CFBundleVersion, installed XQuartz and old java and it all worked (didn't need step 3).
I AM happy to see that 2010b will work, on Yosemite though ;)
Glad to know it helped, Philip. Just to sum up. I have r2010b running on Yosemite. First, I followed the three Bhanu's steps:
1. Install latest release of X11/XQuartz (2.7.7).
2. Install Java for OS X 2014-001
3. Open terminal and execute:
sudo ln -s /opt/X11/ /usr/X11
At this point I was able to run MATLAB from /Aplicaciones/MATLAB_R2010b/Contents/MacOS/StartMATLAB or with the command /Applications/MATLAB_R2010b.app/bin/matlab as suggested by Chris. However, I was not able to use the app icon (which had the prohibited sign across it). To change this icon:
4. Right click on the app icon to get info and drag the file /Aplicaciones/MATLAB_R2010b/Contents/Resources/MATLAB.icns in the top left corner of the window.
After that, the prohibited sign disappeared, however, running the app icon still threw the message "You can’t use this version of the application “MATLAB_R2010b” with this version of OS X." Then:
5. Edit /Applications/MATLAB_R2010b.app/Contents/Info.plist by changing the value of key CFBundleVersion from 2.X to 9.X (and maybe the LSMinimumSystemVersion key from 10.5.8 to 10.10.0). In my case, the corresponding lines look as follows:
<key>CFBundleVersion</key>
<string>9.1</string>
<key>LSEnvironment</key>
<dict>
<key>MATLAB_USE_USERWORK</key>
<string>1</string>
</dict>
<key>LSMinimumSystemVersion</key>
<string>10.10.0</string>
Moving the whole MATLAB app to another location and back to /Applications folder can help to reload Info.plist. Now, I am able to run MATLAB with the app icon (also form the dock, or .m files) as I was on Mavericks.
After some comments, I guess only steps 1, 2 and 5 are needed. Give it a try.
Edited: At this step, you can run matlab but not its help nor the doc command. To solve this problem, download the patch corresponding to your version from mathworks ( http://www.mathworks.com/support/bugreports/1098655 ). In the unzipped folder, run the patch or go to /matlab/java and copy the patch folder inside /Aplicaciones/MATLAB_R2010b/java. For R2010b I used patch_1098655_Java6.dmg.zip version. I guess it will work for R2013a and previous versions. For R2013b and R2014a download patch_1098655.dmg.zip version.
Good luck!
Spase
on 21 Oct 2014
Thank you Javier. All of this worked for me (I have version 2001b).
However, I still can't launch the Help, every time it gives a series of java errors like below. Does anyone know any solution to this?
Thanks in advance.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.mde.help.HelpBrowser$1.whenHelpBrowserExists(HelpBrowser.java:169) at com.mathworks.mde.help.HelpBrowser$HelpBrowserRunnable.run(HelpBrowser.java:1335) at com.mathworks.mde.help.HelpBrowser$HelpBrowserRunnable.doHelpBrowserAction(HelpBrowser.java:1323) at com.mathworks.mde.help.HelpBrowser$HelpBrowserRunnable.access$300(HelpBrowser.java:1314) at com.mathworks.mde.help.HelpBrowser.invoke(HelpBrowser.java:178) at com.mathworks.mde.help.HelpBrowserBridge.invoke(HelpBrowserBridge.java:38) at com.mathworks.mlservices.MLHelpServices.invoke(MLHelpServices.java:42) at com.mathworks.mde.desk.MLDesktop$HelpProductPageAction.actionPerformed(MLDesktop.java:2700) at com.mathworks.mwswing.ChildAction.actionPerformed(ChildAction.java:178) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:389) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809) at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:137) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850) at java.awt.Component.processMouseEvent(Component.java:6414) at javax.swing.JComponent.processMouseEvent(JComponent.java:3275) at java.awt.Component.processEvent(Component.java:6179) at java.awt.Container.processEvent(Container.java:2084) at java.awt.Component.dispatchEventImpl(Component.java:4776) at java.awt.Container.dispatchEventImpl(Container.java:2142) at java.awt.Component.dispatchEvent(Component.java:4604) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209) at java.awt.Container.dispatchEventImpl(Container.java:2128) at java.awt.Window.dispatchEventImpl(Window.java:2492) at java.awt.Component.dispatchEvent(Component.java:4604) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97) at java.awt.EventQueue$3.run(EventQueue.java:690) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:687) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Yi
on 21 Oct 2014
You are so awsome, guy. Thank you. It solved the issue for my Matlab 2011b on Yosemite.
Spase
on 21 Oct 2014
and also now I can't open the Mail, and reading from other forums it seems like it is related to this fix... :/
Javier
on 21 Oct 2014
Hi Spase, I didn't realize of java exception when running help. However, see the Tom comment below. By copying the provided patch in the /Applications/MATLAB_R2010b/java folder I can now run the help like a charm :).
Regarding the Mail error. Did you modify the ProductVersion or ProductUserVisibleVersion keys in the /System/Library/CoreServices/SystemVersion.plist file? I have read several solutions that involve modifying those keys. If so, try to revert the changes. Mines look like this:
<key>ProductUserVisibleVersion</key>
<string>10.10</string>
<key>ProductVersion</key>
<string>10.10</string>
Good luck again!
Ken Atwell
on 17 Oct 2014
2 votes
MATLAB supports Yosemite as-of R2014b. Older release may also work, but this is not something MathWorks has rigorously tested. There were troubles in several the beta builds of Yosemite, but the final release of Yosemite has been reported to work well with MATLAB.
10 Comments
Parth Patel
on 17 Oct 2014
Thomas
on 18 Oct 2014
Ken, it is unacceptable that only the latest release of your software (which is only 1 month old) supports the current Apple OS X Yosemite. If Mathworks is so much behind the curve in providing compatibility for its software that it is almost embarrassing, then at least you should allow everyone to upgrade to 2014b for free! How are students supposed to do their work now if the only current Student Version available (2014a) does not work properly? It is outrageous and unfortunately not the first time this happens! Please provide a free download to 2014b for all student version users now. It is strange that I have to suggest that and Mathworks does not proactively offer this! So much for customer service! Thank you.
Shakar Bradost
on 18 Oct 2014
I was working on a project with my student version. I just updated to OS X Yosemite then realized i can't access Matlab. Now what i'm reading is that i'm done, there's no solution. I can't believe this is coming from a professional company!
Chao
on 19 Oct 2014
Hi Ken,
Unfortunately, my matlab2012b won't work on the final release of Yosemite. It is unacceptable that older matlab does not have support from your company.
John D'Errico
on 19 Oct 2014
Chao - That older MATLAB releases do not have support on NEW OS versions after a major OS change? Sorry, but they cannot go back and fix every older release to work on every new OS version! That would be insanity, pure and simple.
I AM happy to see that 2014b will work, on Yosemite though. That means I can now do my own OSX upgrade, something I have put off until I saw this.
yavuz
on 19 Oct 2014
When can we access matlab2014b student release? There is still 2014a on the student link!
John D'Errico
on 20 Oct 2014
yavuz - I'd suggest that you actually have a completely valid question, distinct from the one at hand, and that it would be best asked as a question itself, not as a comment that can often be lost in the shuffle.
Image Analyst
on 21 Oct 2014
Yavuz: most likely there will be none. Historically, only the "a" versions, released annually in March, have had student versions.
Ken Atwell
on 21 Oct 2014
With that MathWorks patch at http://www.mathworks.com/support/bugreports/1098655, you should be able to use MATLAB releases as far back at R2012a on Yosemite. Be sure to download the patch that matches your release of MATLAB.
Marco
on 20 Oct 2014
1 vote
Is this really a MATLAB issue, or more a Yosemite issue which then should better be adressed directly to Apple? I heard that other software packages (i.e. professional music software) also have severe trouble with it (not running anymore).
1 Comment
Ken Atwell
on 21 Oct 2014
Marco, yes and no. There are two issues at play:
- Initial releases of Yosemite blacklisted some releases of MATLAB. This was corrected in an update released as Yosemite went gold. We hope most users get this update within hours of installing Yosemite (so this problem should age out in the days/weeks to some). See https://www.mathworks.com/support/bugreports/1116607 for details.
- Once you are past the blacklisting, all MATLAB release except R4014b will need a patch or MATLAB may abort suddenly, on start-up in many situations. This problem is detailed at http://www.mathworks.com/support/bugreports/1098655
Tom
on 20 Oct 2014
1 vote
Here is a patch I made from Mathwork's official patch. It works on versions prior to R2013b (unlike the official patch) without modifying the SystemVersion.plist. I've confirmed R2013a and R2012b but I assume others will work as well.
To install:
- Extract patch.zip
- Right click on MATLAB_R20XX.app in your Applications directory and click "Show Package Contents"
- Place the extracted folder (named "patch") into the MATLAB_R20XX.app/java folder (alongside the existing jar and jarext folders)
You may still need to run Matlab by double clicking MATLAB_R20XX.app/Contents/MacOS/StartMATLAB. To avoid this you can temporarily change your SystemVersion.plist (as described in other posts here), launch Matlab, change the SystemVersion.plist back, and now Matlab will work by double clicking the .app.
1 Comment
Javier
on 21 Oct 2014
Thank you Tom. I was able to run matlab with other solutions, however, the matlab help was throwing me a java exception. With your solution I can run the help without any problem.
Hongbo Miao
on 17 Oct 2014
0 votes
I put the answer here. Check this! Good luck!
Balaji
on 20 Oct 2014
0 votes
MathWorks has released patches/workarounds for the two main issues
1) "You can't use this version of the application" error. https://www.mathworks.com/support/bugreports/1116607
If you have the latest 10.39 or later update from Apple,this issue should not occur. But in the case that it does,you can use either of the two workarounds mentioned in the above link.
2)Java crash upon MATLAB. https://www.mathworks.com/support/bugreports/1098655
This patch addresses the Java issue.
Accept/comment on this answer if it works so that other users can benefit from it.
2 Comments
Philip
on 20 Oct 2014
Java patch doesn't fix R2013a_Student...maybe others, I don't know.
Ken Atwell
on 20 Oct 2014
Correct, the patch for the Java crash works with R2014a and R2013b only.
Austin
on 20 Oct 2014
0 votes
I was running the student version of R2012a before updating to Yosemite and was greeted with the "You can't run this application on this version of OSX" after the update. Fortunately, after trying a few things I was able to get MATLAB up and running again. This is what I did that I believed fixed my copy:
-Re-installing XQuartz. I'm tempted to say this is the main reason why older versions of MATLAB are running into the issue as, after trying to open MATLAB in terminal, my computer indicated that the X11 files were missing after the update to Yosemite.
-Installing the most recent version of Java on my computer. I'm not 100% sure this is mandatory for the fix, but I did update Java after the update and a lot of people are noting that this was necessary for a fix.
I can't say I've tested this fix enough to know for certain that this solution will work in all instances, but my version is working fine now after doing the above. Best of luck!
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!