您的位置:首页 > 编程语言 > MATLAB

在Mac上安装matlab, 激活阶段出现错误

2011-10-11 05:40 579 查看
我安装了MATLAB 7.8 (R2009a)在我的mac下,安装很顺利,一点问题也没有,但是安装完以后我点击激活,X11打开,"activation matlab"图标跳,但是出现错误提示(如图):





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 (10.5) or /Applications/Utilities/Java Preferences (10.6).

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.

解决方法:

这是因为matlab R2009a 是用32 bit的应用程序,可是他自动调用的是 Java 64-bit, 所以

打开/Applications/Utilities/Java/Java Preferences (10.5) or /Applications/Utilities/Java Preferences (10.6),调换顺序,把32-bit
放到list上面。

然后重启matlab,激活,完成以后,再把顺序掉回去!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息