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

在Eclipse中运行项目 遇到如下错误:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000c0190, pid=2640, tid=2120
#
# JRE version: 7.0-b57
# Java VM: Java HotSpot(TM) Client VM (16.0-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C 0x000c0190
#
# An error report file with more information is saved as:
# D:\eclipse\ChatFrame0.5\hs_err_pid2640.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

JAVA编译器的问题,eclispe自带的JRE编译的,与你系统中的JDK版本有编译后的冲突,
解决方法:把你项目的运行编译环境全部指向你系统的JDK,再重编译运行试试

具体如下:

1.使用命令查看jre的路径

echo $JAVA_HOME  

echo $JRE_HOME

echo $CLASSPATH

echo $PATH

echo $TOMCAT_HOME

2.右键项目名称,在build path中找到Libraries下面的JRE System Libraries

点击左侧的Edit进行路径的修改即可


A fatal error has been detected by the Java Runtime Environment:,布布扣,bubuko.com

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

上一篇:Java内存溢出和内存泄露


下一篇:C++自定义异常类