Java VM上的Android错误。运行Java SE 7

时间:2014-02-26 16:09:57

标签: java android macos

好吧,所以我有一个内部错误,这意味着代码在所有计算机上运行,​​但我有一个内部错误,我无法理解,也不知道如何修复。

#
#  Internal Error (javaClasses.cpp:129), pid=11983, tid=5891
#  fatal error: Invalid layout of preloaded class
#
# JRE version: 7.0_17-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode bsd-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/ColinRioux/Desktop/Hangman/hs_err_pid11983.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

我正在为MacOSX运行JRE 7(默认)。操作系统:最新版本的小牛队(全面更新)。

1 个答案:

答案 0 :(得分:1)

您需要告诉OSX使用JDK(Java开发工具包)而不是JRE(Java运行时环境)。

因此,请确保您已为osx安装了Sun JDK 。这是一个链接 http://www.oracle.com/technetwork/java/javase/downloads/index.html

然后使用spotlight(cmd-spacebar)打开“Java首选项” 并且只检查与下载相同版本信息的那些(1.7)并取消选中JRE。

现在你的osx机器将被设置为使用JDK,并且当你重新启动IDE时,android编译/开发应该会更好。