Install / Activate MATLAB in Snow Leopard

While attempting to activate MATLAB r2009a (Student Edition) on Snow Leopard, I ran into the following error:

MATLAB-Snow_Leopard_Activation_Error.png

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

Installing MATLAB worked fine, however, without activation, MATLAB wouldn’t launch. After much searching, I found a solution on MATLAB’s site. The solution posted by MathWorks is to run the activation utility using the 32bit version of Java rather than Snow Leopard’s default of 64bit Java. This can be done by opening the Java Preferences utility ( /Applications/Utilities/Java Preferences.app in Snow Leopard) and dragging the 32bit version of Java for Applications to the top of the list — it should look like the following screenshot.

MATLAB-Snow_Leopard_Java_App_Settings.png

At this point, you can launch MATLAB and activate it. Once MATLAB is activated, you can revert the changes you made in the Java Preferences App (either drag the 64bit version back to the top or click ‘Restore Defaults’).

At this point, everything should work. You’ll need to repeat the above steps if you ever have to run the activation utility again; however, MATLAB will run just fine with the 64bit version of Java being the default version.

Best of luck getting MATLAB running, and if you have questions/issues feel free to post a comment.

5 Comments

  1. aaron
    Posted October 1, 2009 at 3:25 am | Permalink

    thank you so much. this worked perfectly. your explanation was far and away the easiest to understand out of all the ones I read.

  2. Robert Scullin
    Posted October 12, 2009 at 3:36 pm | Permalink

    I’m glad it helped – it sure took me long enough to figure out this solution!

  3. Andrew
    Posted January 15, 2010 at 11:09 pm | Permalink

    Thank you sooooo much!!!

  4. Posted February 27, 2010 at 12:39 pm | Permalink

    Hello Robert,

    Succinct and accurate…..many thanks!
    Tom

  5. robert Harmon
    Posted October 2, 2010 at 12:43 am | Permalink

    thanks a million

Post a Comment

Your email is never shared. Required fields are marked *

*
*

The views and ideas in this blog are strictly my own and do not necessarily reflect the views of anyone else, including any employeer, past, present, or future.