Unexpected exception when activating MATLAB R2009a or earlier on Mac Pro

http://www.mathworks.com/support/solutions/en/data/1-8GS5S1/index.html

Subject:

Why do I get an unexpected exception when activating MATLAB 7.8 (R2009a) or earlier on a Mac OS X machine?

Problem Description:

When I attempt to activate MATLAB on Mac OS X, I get the error:
There was an unexpected exception:
null
See the log file (/tmp/aws.log) for more details.
The log file has the following information:
MATHWORKS ACTIVATION IS STARTING UP.
java.lang.UnsatisfiedLinkError: Cant load library: /Applications/MATLAB_R2008b.app/bin/maci64/libinstutil.jnilib
com.mathworks.instutil.NativeUtility.(NativeUtility.java:36)
com.mathworks.instutil.MachineInfo.(MachineInfo.java:40)
com.mathworks.activationclient.model.ActivationModelImpl.loadNativeLib(ActivationModelImpl.java:216)
com.mathworks.activationclient.model.ActivationModelImpl.getMachineInfo(ActivationModelImpl.java:189)
com.mathworks.activationclient.view.ApplicationViewImpl.getMachineInfo(ApplicationViewImpl.java:200)
com.mathworks.activationclient.view.ApplicationViewImpl.showGUI(ApplicationViewImpl.java:79)
com.mathworks.activationclient.controller.ApplicationControllerImpl.start(ApplicationControllerImpl.java:99)
com.mathworks.activationclient.ActivationApplication.main(ActivationApplication.java:31)
null
com.mathworks.activationclient.view.ApplicationViewImpl.showGUI(ApplicationViewImpl.java:79)
com.mathworks.activationclient.controller.ApplicationControllerImpl.start(ApplicationControllerImpl.java:99)
com.mathworks.activationclient.ActivationApplication.main(ActivationApplication.java:31)
How can I activate MATLAB on Mac OS X?

Solution:

This issue is due to a change in the default Java version from when MATLAB R2009a was released. The activation may attempt to call 64 bit libraries, whereas MATLAB is a 32 bit application under Mac OS X. As a workaround, you can temporarily change your system's default java for applications to use the 32-bit JVM. Once you have activated, you can change it back to Java 6 (64-bit) or J2SE 5 (64-bit).

To do this, open the Java Preferences application from /Applications/Utilities/Java/Java Preferences (early 10.5 releases) or /Applications/Utilities/Java Preferences (10.6).

Make sure you are under the "General" Section, and if there are multiple lists, the "Java Applications" list will be modified. In the section marked "Java Applications", drag the 32-bit item to the top of the list. Then close this application and restart the activation client by double clicking on the MATLAB application in your Applications directory.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值