Creating a class in an Android project that contains the main () method will report the following error when you right-run the class:
#
# A Fatal error has been detected by the Java Runtime environment:
#
# Internal Error (classfileparser.cpp:3470), pid=5980, tid=7504
# Error:shouldnotreachhere ()
#
# JRE version:7.0-b147
# Java Vm:java HotSpot (TM) Client VM (21.0-b17 mixed Mode windows-x86)
# Failed to write core dump. Minidumps is not enabled by default on client versions of Windows
#
The reason may be that main () is in conflict with the Android portal (OnCreate ()).
Workaround:
1. Select Project, right-click Run as--run configurations ...
2. In Java aplication (or your corresponding classification) find the project you just run, you can manually create or run the class once;
3. Switch to the CLASSPATH option bar, delete the Android library in the bootstrap entries, then click on the right side of the advanced: JRE System, Add Library Library, all the way next.
Then run the class again and it will work.
Error:shouldnotreachhere () (Android)