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进行路径的修改即可



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM