在Android工程中的某个类写main函数执行java application运行,会报一下错误:
A fatal error has been detected by the Java Runtime Environment:
## Internal Error (classFileParser.cpp:3470), pid=1280, tid=61184
# Error: ShouldNotReachHere()
#
# JRE version: 7.0_01-b08
# Java VM: Java HotSpot(TM) Client VM (21.1-b02 mixed mode windows-x86 )
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\workspace\krbb_teacher\hs_err_pid1280.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
解决方法:
右键-->run configration-->classpath-->将Bootstrap Entries下的Android2.2包remove掉