Fatal error by Java runtime environment

siri picture siri · Mar 30, 2010 · Viewed 28.9k times · Source

I am executing a junit test case

I got the following error,

A fatal error has been detected by the Java Runtime Environment:

Internal Error (classFileParser.cpp:3174), pid=2680, tid=2688

  Error: ShouldNotReachHere()

  JRE version: 6.0_18-b07

  Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )

Can any body please suggest the solution to resolve

Answer

Fredrik picture Fredrik · Jul 11, 2010

I got the same problem, but with alot of googling I found the answer! See this page

Quote from the link:


# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (classFileParser.cpp:2924), pid=5364, tid=6644
#  Error: ShouldNotReachHere
  1. That's because we are using Android's JUnit stub implementation. Go to Run -> Run As -> Run configurations again and in the recently created JUnit configuration Classpath's Bootstrap Entries remove Android Library
  2. Then Add Library, using Advanced... button, and add JRE System Library and JUnit 3
  3. Apply and Run

Try this, it worked for me.