Android工程里面一个方法不小心写了一个main方法,运行失败后,整个工程都跑不起来了。
系统提示我看log,好吧,如下:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (classFileParser.cpp:3494), pid=3776, tid=7068
# Error: ShouldNotReachHere()
#
# JRE version: 6.0_43-b01
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.14-b01 mixed mode windows-amd64 compressed oops)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x000000000061d000): JavaThread "Unknown thread" [_thread_in_vm, id=7068, stack(0x0000000001f30000,0x0000000002030000)]
Stack: [0x0000000001f30000,0x0000000002030000]
[error occurred during error reporting (printing stack bounds), id 0xc0000005]
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
=>0x000000000061d000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=7068, stack(0x0000000001f30000,0x0000000002030000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: None
Dynamic libraries:
0x0000000000400000 - 0x000000000042f000
C:\Program Files\Java\jre6\bin\javaw.exe
0x00007ff9a6770000 - 0x00007ff9a6919000
C:\windows\SYSTEM32\ntdll.dll
0x00007ff9a6630000 - 0x00007ff9a6769000
C:\windows\system32\KERNEL32.DLL
0x00007ff9a3bc0000 - 0x00007ff9a3cce000
C:\windows\system32\KERNELBASE.dll
0x00007ff9a2750000 - 0x00007ff9a27db000
C:\windows\system32\apphelp.dll
0x00007ff998dc0000 - 0x00007ff998e0f000
C:\windows\AppPatch\AppPatch64\AcGenral.DLL
0x00007ff9a6080000 - 0x00007ff9a6127000
C:\windows\system32\msvcrt.dll
0x00007ff9a39a0000 - 0x00007ff9a39cb000
C:\windows\SYSTEM32\SspiCli.dll
0x00007ff9a4030000 - 0x00007ff9a4081000
C:\windows\system32\SHLWAPI.dll
0x00007ff9a5b80000 - 0x00007ff9a5cf1000
C:\windows\system32\USER32.dll
0x00007ff9a64b0000 - 0x00007ff9a6626000
C:\windows\system32\ole32.dll
0x00007ff9a41a0000 - 0x00007ff9a55ad000
C:\windows\system32\SHELL32.dll
0x00007ff9a3180000 - 0x00007ff9a319f000
C:\windows\SYSTEM32\USERENV.dll
0x00007ff9a4090000 - 0x00007ff9a4135000
C:\windows\system32\ADVAPI32.dll
0x00007ff997ec0000 - 0x00007ff997edb000
C:\windows\SYSTEM32\MPR.dll
0x00007ff9a6310000 - 0x00007ff9a6446000
C:\windows\system32\RPCRT4.dll
0x00007ff9a5f20000 - 0x00007ff9a5f77000
C:\windows\SYSTEM32\sechost.dll
0x00007ff9a55c0000 - 0x00007ff9a5797000
C:\windows\SYSTEM32\combase.dll
0x00007ff9a57a0000 - 0x00007ff9a58e5000
C:\windows\system32\GDI32.dll
0x00007ff9a3af0000 - 0x00007ff9a3b04000
C:\windows\SYSTEM32\profapi.dll
0x00007ff9a1d20000 - 0x00007ff9a1dc1000
C:\windows\SYSTEM32\SHCORE.dll
0x00007ff9a62d0000 - 0x00007ff9a6304000
C:\windows\system32\IMM32.DLL
0x00007ff9a5d10000 - 0x00007ff9a5e48000
C:\windows\system32\MSCTF.dll
0x000000006d810000 - 0x000000006dfcc000
C:\Program Files\Java\jre6\bin\server\jvm.dll
0x00007ff99b970000 - 0x00007ff99b98f000
C:\windows\SYSTEM32\WINMM.dll
0x00007ff998000000 - 0x00007ff99802a000
C:\windows\SYSTEM32\WINMMBASE.dll
0x00007ff9a3fb0000 - 0x00007ff9a3ffa000
C:\windows\SYSTEM32\cfgmgr32.dll
0x00007ff9a29a0000 - 0x00007ff9a29c6000
C:\windows\SYSTEM32\DEVOBJ.dll
0x000000006d780000 - 0x000000006d78e000
C:\Program Files\Java\jre6\bin\verify.dll
0x000000006d3b0000 - 0x000000006d3d7000
C:\Program Files\Java\jre6\bin\java.dll
0x000000006d7d0000 - 0x000000006d7e2000
C:\Program Files\Java\jre6\bin\zip.dll
0x00007ff9a5e50000 - 0x00007ff9a5e57000
C:\windows\system32\PSAPI.DLL
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Xbootclasspath:E:\All_Utils\adt-bundle-windows-x86_64-20140321\sdk\platforms\android-19\android.jar
java_command: com.skyworth.kidlover.http.bean.KidNearbyBean
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_43
CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_43\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_43\lib\tools.jar;
PATH=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_43\bin;C:\Program Files\Java\jdk1.6.0_43\jre\bin;E:\All_Utils\adt-bundle-windows-x86_64-20140321\sdk\platform-tools;E:\All_Utils\adt-bundle-windows-x86_64-20140321\sdk\tools;C:\Program Files\TortoiseSVN\bin;C:\AppServ\Apache2.2\bin;C:\AppServ\php5;C:\AppServ\MySQL\bin
USERNAME=sjy
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 8 , 64 bit Build 9200
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 10152480k(6970836k free), swap 10807840k(7241168k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (20.14-b01) for windows-amd64 JRE (1.6.0_43-b01), built on Mar 1 2013 01:52:33 by "java_re" with MS VC++ 8.0 (VS2005)
time: Fri Jul 18 18:20:08 2014
elapsed time: 0 seconds
研究了小半天终于找到问题所在,
要把Run/Debug 里面那个错误的类给去掉。
如图: