简体   繁体   中英

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). Operating System: Latest Release of Mavericks (fully updated).

You will need to tell OSX to use the JDK (Java Development Kit) instead of the JRE (Java Runtime Environment).

So, lets be certain you have installed the Sun JDK for osx. here is a link 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.

Now your osx machine will be setup to use the JDK and android compiles/development should work a better when you restart your IDE.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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