Error Handling: Internal Error (classFileParser. cpp: 3494)
In the Android project, you need to run a Java program to obtain information for development. However, an error is reported during running. The error message is as follows:
## A fatal error has been detected by the Java Runtime Environment:## Internal Error (classFileParser.cpp:3494), pid=440, tid=744# Error: ShouldNotReachHere()## JRE version: 6.0_45-b06# Java VM: Java HotSpot(TM) Client VM (20.45-b01 mixed mode windows-x86 )# An error report file with more information is saved as:# F:\VideoApp\AndroidClient\hs_err_pid440.log## If you would like to submit a bug report, please visit:# http://java.sun.com/webapps/bugreport/crash.jsp
The solution is as follows:
1. right-click the Java class to be Run and choose Run As> Run commands... 2. 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.
----------------------
At the same time, it is also found that the Internal Error (classFileParser. cpp: 3494) Error occurs during the Junit test. The specific Error during the junit test is as follows:
## A fatal error has been detected by the Java Runtime Environment:## Internal Error (classFileParser.cpp:3494), pid=7480, tid=6876# Error: ShouldNotReachHere()## JRE version: 6.0_45-b06# Java VM: Java HotSpot(TM) Client VM (20.45-b01 mixed mode windows-x86 )# If you would like to submit a bug report, please visit:# http://java.sun.com/webapps/bugreport/crash.jsp#
Generally, this error is most likely to occur after the ADT is upgraded.
Solution:
1. right-click the junit test class and choose Run As> Run commands... 2. 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.