[Problem Solving] error: shouldnotreachhere () [sorting]
Android
If you create a class that contains the main () method in the android project and right-click the class to run the class, the following error is reported:
# A fatal error has been detected by the Java Runtime Environment: # Internal error (classfileparser. cpp: 3494), pid = 5940, tid = 5632 # error: shouldnotreachhere ()
The specific cause is unknown, maybe because
The main () conflicts with the main portal (activity) of Android.For more information, see this article: errors in Android
Error: shouldnotreachhere ()
Solution (reference ):1. right-click the project and choose run as> run commands... 2. find the project you just run in Java aplication (or your corresponding category). If not, you can manually create or run the class once. 3. switch to the classpath option bar, delete the android library in Bootstrap entries, and click advanced on the right .. -> Add library-> JRE system library, all the way to next.
Then run the class to run normally.