zoukankan      html  css  js  c++  java
  • 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:eclipseChatFrame0.5hs_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进行路径的修改即可


  • 相关阅读:
    CentOS-Docker安装RabbitMQ集群(rabbitmq:3.7.16-management)
    Xcode Shortcuts
    In App Purchase
    CoreData
    Sandbox 文件存放规则
    在 mac os 上搭建 git server
    Git
    Git and Xcode
    心算技巧
    AppleScript
  • 原文地址:https://www.cnblogs.com/tina-smile/p/3618658.html
Copyright © 2011-2022 走看看