简体   繁体   English

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

[英]Android Error on Java VM. Running Java SE 7

Alright, so I have an internal error, meaning the code runs on all computers, but I have an internal error that I cannot understand and don't know how to fix. 好的,所以我有一个内部错误,这意味着代码可以在所有计算机上运行,​​但是我有一个内部错误,我无法理解并且不知道如何解决。

#
#  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
#

I am running JRE 7 for MacOSX (Default). 我正在为MacOSX运行JRE 7(默认)。 Operating System: Latest Release of Mavericks (fully updated). 操作系统:Mavericks的最新版本(已完全更新)。

You will need to tell OSX to use the JDK (Java Development Kit) instead of the JRE (Java Runtime Environment). 您将需要告诉OSX使用JDK(Java开发工具包)而不是JRE(Java运行时环境)。

So, lets be certain you have installed the Sun JDK for osx. 因此,可以肯定的是您已经安装了用于osx的Sun JDK here is a link http://www.oracle.com/technetwork/java/javase/downloads/index.html 这是链接http://www.oracle.com/technetwork/java/javase/downloads/index.html

Then use spotlight (cmd-spacebar) to open "Java Preferences" and only check the ones that say the same version info as that download (1.7) and uncheck the JRE ones. 然后使用Spotlight(cmd-spacebar)打开“ Java首选项”,仅检查那些与下载的版本信息(1.7)相同的版本,然后取消选中JRE。

Now your osx machine will be setup to use the JDK and android compiles/development should work a better when you restart your IDE. 现在,您的osx机器将被设置为使用JDK,并且当您重新启动IDE时,android编译/开发应该可以更好地工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM