Snow Leopard + Matlab

Just want to double check compatibility - anyone heard anything regarding
Matlab 2009a + Snow Leopard?

thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I would also be happy to

I would also be happy to hear from Snow Leopard users some feedback

Snow Leopard OK for 2008b...

seems OK
https://wiki.brown.edu/confluence/pages/viewpage.action?pageId=53674011

It would seem that Parallels

It would seem that Parallels work ok on Snow Leopard as is (some minor bugs), so I will continue to run windows matlab on my macbook, under Snow.

It's much faster than matlab under os x under Leopard.

Version 7.4

I get some strange Java related errors when starting 7.4 (2007a) on Snow Leopard which I think cause some of the quirks. But when I run it without the JVM, (matlab -nojvm), I don't have any problems. Other than it being slower than I'd like.

Errors are listed below.

Unable to create com.mathworks.mde.filebrowser.FileBrowser, due to:
java.lang.NoSuchMethodError: apple.laf.AquaImageFactory.getWindowBackgroundColorUIResource()Lapple/laf/CColorPaintUIResource;
java.lang.NoSuchMethodError: apple.laf.AquaImageFactory.getWindowBackgroundColorUIResource()Lapple/laf/CColorPaintUIResource;
at com.jidesoft.plaf.aqua.AquaJideUtils.initComponentDefaults(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.jidesoft.plaf.LookAndFeelFactory.a(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.mathworks.mwswing.MJUtilities.initJIDE(MJUtilities.java:170)
at com.mathworks.mde.filebrowser.FileView.(FileView.java:380)
at com.mathworks.mde.filebrowser.FileBrowser.(FileBrowser.java:81)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.mathworks.mwswing.desk.DTClient.createComponent(DTClient.java:264)
at com.mathworks.mwswing.desk.Desktop.createClientComponent(Desktop.java:4880)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5184)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5172)
at com.mathworks.mwswing.desk.DTNestingContainer$ViewState.restore(DTNestingContainer.java:2458)
at com.mathworks.mwswing.desk.DTNestingContainer$SplitState.restore(DTNestingContainer.java:2115)
at com.mathworks.mwswing.desk.DTNestingContainer$SplitState.restore(DTNestingContainer.java:2115)
at com.mathworks.mwswing.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:2003)
at com.mathworks.mwswing.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:1998)
at com.mathworks.mwswing.desk.DTNestingContainer.restoreState(DTNestingContainer.java:1881)
at com.mathworks.mwswing.desk.DTMultipleClientFrame.restoreState(DTMultipleClientFrame.java:1826)
at com.mathworks.mwswing.desk.Desktop.restoreLayout(Desktop.java:4537)
at com.mathworks.mwswing.desk.Desktop.restoreLayout(Desktop.java:4351)
at com.mathworks.mwswing.desk.Desktop.restorePreviousLayout(Desktop.java:3334)
at com.mathworks.mwswing.desk.Desktop.initMainFrame(Desktop.java:294)
at com.mathworks.mde.desk.MLDesktop.initMainFrame(MLDesktop.java:309)
at com.mathworks.mde.desk.MLDesktop$Initializer.run(MLDesktop.java:450)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
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)

Problems with 2007a

I'm having a similar problem with 2007a. I get the following error:

Unable to create com.mathworks.mde.cmdhist.CmdHistoryWindow, due to:
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: apple.laf.AquaImageFactory.getWindowBackgroundColorUIResource()Lapple/laf/CColorPaintUIResource;
at com.jidesoft.plaf.aqua.AquaJideUtils.initComponentDefaults(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.jidesoft.plaf.LookAndFeelFactory.a(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.mathworks.mwswing.MJUtilities.initJIDE(MJUtilities.java:170)
at com.mathworks.mde.cmdhist.CmdHistoryWindow.createTree(CmdHistoryWindow.java:201)
at com.mathworks.mde.cmdhist.CmdHistoryWindow.getInstance(CmdHistoryWindow.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.mathworks.mwswing.desk.DTClient.createComponent(DTClient.java:258)
at com.mathworks.mwswing.desk.Desktop.createClientComponent(Desktop.java:4880)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5184)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5172)
at com.mathworks.mwswing.desk.DTNestingContainer$ViewState.restore(DTNestingContainer.java:2458)
at com.mathworks.mwswing.desk.DTNestingContainer$SplitState.restore(DTNestingContainer.java:2116)
at com.mathworks.mwswing.desk.DTNestingContainer$SplitState.restore(DTNestingContainer.java:2115)
at com.mathworks.mwswing.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:2003)
at com.mathworks.mwswing.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:1998)
at com.mathworks.mwswing.desk.DTNestingContainer.restoreState(DTNestingContainer.java:1881)
at com.mathworks.mwswing.desk.DTMultipleClientFrame.restoreState(DTMultipleClientFrame.java:1826)
at com.mathworks.mwswing.desk.Desktop.restoreLayout(Desktop.java:4537)
at com.mathworks.mwswing.desk.Desktop.restoreLayout(Desktop.java:4351)
at com.mathworks.mwswing.desk.Desktop.restorePreviousLayout(Desktop.java:3334)
at com.mathworks.mwswing.desk.Desktop.initMainFrame(Desktop.java:294)
at com.mathworks.mde.desk.MLDesktop.initMainFrame(MLDesktop.java:309)
at com.mathworks.mde.desk.MLDesktop$Initializer.run(MLDesktop.java:450)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
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)

Which is a problem, because I would like a command history window!!

Anyway, I can't figure out how to implement the "fix" implemented by pmolfese (matlab -nojvm). Is this something you type into matlab or the terminal? I've tried both with no luck. Could I get some more details?

nojvm

Yes, you call Matlab from the X11 (or Terminal) command line. However, this will take away the pretty matlab interface which has the editor window, command history, etc. You can still call graphics routines (and toolboxes) but the regular editor is gone.

/Applications/MATLAB74/bin/matlab -nojvm

I think in newer versions like 2007a you can use -noawt instead. But I've never tried! If you launch matlab a lot, you might consider adding an alias to your .bashrc to do so:

1. Open Terminal Window
2. type: nano .bashrc
3. add line: alias matlab='/Applications/MATLAB74/bin/matlab -nojvm'
4. Control-X and select save

After doing this, close the terminal window, open a new one and you will be able to launch matlab without the JVM by typing "matlab" at the command line.

Thanks, not quite what I was

Thanks, not quite what I was hoping for, but now I can run Matlab from the command line! Never knew how to do that before.

newbie in need of help

So I just installed MATLAB and every time I go to open it, or "activate it" it returns this error:

There was an unexpected exception: Can't load library: / Applications/ MATLAB_R2009aSV.app/ / bin/ maci64/ libactivation.jnilib See the log file (/ var/ folders/ Mp/ Mp0PQFo9GbKznsjhgBiZf++++TI/ -Tmp-/ TMW_svact_christophergiuliano.log) for more details.

I don't know if this is related, but I'm running 10.6 Snow leopard on an intel based mac. Does anyone know how to resolve this problem?

Thanks.

I'll take a crack at it if

I'll take a crack at it if you upload the contents of that temporary log file. If you still have a matlab support contract (1 year after purchase or if you renewed it), then you can ask their support engineers.

What version of Matlab? Student or full version?

Found this online

Seems like this is a known problem:

http://www.mathworks.com/support/solutions/en/data/1-AKVSXY/?solution=1-AKVSXY

The solution seems to be manual activation...

Re: newbie in need of help

Hi,

I solved this problem changing the Java VM to the 32 bit version, as suggested in

http://www.mathworks.com/support/solutions/data/1-8GS5S1.html?product=ML&solution=1-8GS5S1

However, I cannot seem to activate the product.
Every time I open it, it asks me to introduce the license and activate, only to ask me the same again as it relaunches.
No error message.
Anyone knows if there is a log file?

miguel

Manually activation

Hi

To activate the product manually you need to copy the license.dat file to licenses directory. It's located inside the Matlab .app package

Just right-click on Matlab .app aplicattion, "show package contents" and there is a licenses directory, copy the .dat file and run Matlab as normal. This way worked for me.

I hope it helps.

Yes, this solved the

Yes, this solved the problem. Thank you.

FYI 2009a works with

FYI 2009a works with Snow.

However, the launching time leaves a wee bit to be desired.
i opened Parallels, started Matlab in Windows, faster than launching the "Native" mac version.

MathWorks blog topic on Snow Leopard

Folks upgrading to Snow Leopard and using MATLAB may want to visit:

http://blogs.mathworks.com/desktop/2009/08/31/pouncing-on-snow-leopard

Disclaimer: I work for The MathWorks and I wrote the blog article in question.

KEN ATWELL
Product Manager, Platforms and MATLAB Performance
The MathWorks
ken.NOSPAMatwell@mathworks.com
508 647 3114

Force MATLAB 2009a to run in 32-bit mode

I have been experiencing crashes in MATLAB 2009a under Snow Leopard. These seem to take place even if I have Java Preferences set to use a 32-bit version of Java 1.6. It seems I've fixed the issue by forcing MATLAB to run in 32-bit mode.

To do this, navigate to /Applications and right click on the MATLAB program. Select "Get Info" from the contextual menu. Under "General," tick the box that says "Open in 32-bit mode."

Can you update or send logs to support?

The 64-bit version of R2009a was a beta release. Can you update to the final 64-bit release R2009b, see if the problems are still occurring, and if so, contact MathWorks support?