我尝试在Mac 10.9.4上安装Matlab R2014a,这是我Windows 7中的虚拟机。
打开InstallForMacOSX.app后,徽标会显示一段时间,然后显示: 安装Matlab意外退出。
Process: java [427]
Path: /tmp/*/java
Identifier: net.java.openjdk.cmd
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: sh [389]
Responsible: sh [358]
User ID: 501
Date/Time: 2014-09-08 01:02:34.324 -0700
OS Version: Mac OS X 10.9.4 (13E28)
Report Version: 11
Anonymous UUID: 7FAD146F-0E07-23E8-AB07-4C6408874BB4
Crashed Thread: 19 Java: Java2D Queue Flusher
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000103460000-0000000103471000 [ 68K] r-x/rwx SM=COW /tmp/*
Application Specific Information:
abort() called
...
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007fff8bdeefc8, pid=427, tid=40455
JRE version: 7.0_11-b21
Java VM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode bsd-amd64 compressed oops)
Problematic frame:
C [libGL.dylib+0x1fc8] glGetString+0xf
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
它们都很长。对不起,我不熟悉Java的东西。我想知道这里发生了什么?我已经安装了Java SE和JavaforOSX。
答案 0 :(得分:1)
我在Mac OS虚拟机上安装R2014a时遇到了类似的问题。但是,通过做这样的事情我得到了它......
1)从oracle网站here下载最新的java开发工具包(如果你不想要整个JDK,它可能也适用于它自己的java运行时环境)
2)从终端运行matlab安装程序,指定新JRE的位置。另请参阅JRE error when trying to install Matlab Compiler Runtime以获取更多详细信息,但是对我来说(来自MATLAB安装目录中)的命令是
./install -javadir /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre
此时安装程序基本上按照正常情况工作,尽管Symbolic Math Toolbox出现了错误,因此我删除了(错误的)安装,并再次运行安装程序,但没有安装此工具箱。
3)Matlab似乎没有从普通的Applications快捷方式打开,所以我不得不从终端运行它并指定另一个java虚拟机。有关详细信息,请参阅How to run Matlab from the command line?和this。注意,您可以在.bash_profile文件中导出MATLAB_JAVA环境变量,并且在对bash shell的更改产生影响之前,您需要重新启动/打开一个新终端。 祝你好运!