Java运行时环境导致的致命错误 [英] Fatal error by Java runtime environment
本文介绍了Java运行时环境导致的致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在执行junit测试用例
I am executing a junit test case
我收到以下错误,
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
推荐答案
我遇到了同样的问题,但是有很多谷歌搜索我找到了答案! 查看此页
I got the same problem, but with alot of googling I found the answer! See this page
从链接中引用:
# An unexpected error has been detected by Java Runtime Environment:
#
# Internal Error (classFileParser.cpp:2924), pid=5364, tid=6644
# Error: ShouldNotReachHere
- 这是因为我们正在使用Android的JUnit存根实现。转到运行 - >运行方式 - >再次运行配置,在最近创建的JUnit配置中,Classpath的Bootstrap条目删除Android库
- 然后使用Advanced ...按钮添加库,并添加JRE系统库和JUnit 3
- 申请并运行
试试这个,它对我有用。
Try this, it worked for me.
这篇关于Java运行时环境导致的致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文