"Java运行时环境已检测到致命错误".在另一台计算机上运行Java项目时 [英] "A fatal error has been detected by the Java Runtime Environment" when running java project on another computer

查看:201
本文介绍了"Java运行时环境已检测到致命错误".在另一台计算机上运行Java项目时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Netbeans中创建了一个Java项目,该项目在我的计算机上运行没有问题(在Netbeans中和从运行jar文件开始),但是当我尝试在另一台计算机上运行该项目时,出现以下错误消息:

I created a Java project in Netbeans that runs without issue on my computer (both in Netbeans and from running the jar file), but when I try to run the project on another computer I get the following error message:

Java运行时环境检测到致命错误:

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

EXCEPTION_ACCESS_VIOLATION(0xc0000005)at pc = 0x0000000062478337,pid = 2860,tid = 0x0000000000000e84

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000062478337, pid=2860, tid=0x0000000000000e84

JRE版本:Java(TM)SE运行时环境(8.0_112-b15)(内部版本1.8.0_112-b15) Java虚拟机:Java HotSpot(TM)64位服务器虚拟机(25.112-b15混合模式Windows-amd64压缩的oops) 有问题的框架: V [jvm.dll + 0x68337]

JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b15 mixed mode windows-amd64 compressed oops) Problematic frame: V [jvm.dll+0x68337]

无法写入核心转储.默认情况下,Windows客户端版本上未启用小型转储

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

如果您要提交错误报告,请访问: http://bugreport.java.com/bugreport/crash.jsp

If you would like to submit a bug report, please visit: http://bugreport.java.com/bugreport/crash.jsp

我已经搜索了类似的问题,但似乎找不到与我的错误相符的任何内容,因此我不确定该怎么办.如果需要,我可以发布完整的错误日志.如果没有人能弄清楚,有人至少可以向我指出正确的方向(这是内存问题,我是否需要更新Java等)?

I've searched for similar issues but I can't seem to find anything that matches my error, so I'm not sure what to do. I can post the full error log if need be. If no one can figure it out, can someone at least point me in the right direction (is it a memory issue, do I need to update Java, etc)?

推荐答案

根据hs_err_pid.log,崩溃发生在本地方法com.microsoft.sqlserver.jdbc.AuthenticationJNI.SNISecGenClientContext内部,该方法显然属于MSSQL JDBC驱动程序.

According to hs_err_pid.log the crash has happened inside the native method com.microsoft.sqlserver.jdbc.AuthenticationJNI.SNISecGenClientContext which apparently belongs to MSSQL JDBC driver.

崩溃转储中最有趣的部分是线路
C:\Program Files\Java\jre1.8.0_112\bin\sqljdbc_auth.dll

The most interesting part of crash dump is the line
C:\Program Files\Java\jre1.8.0_112\bin\sqljdbc_auth.dll

很明显,sqljdbc_auth.dll不属于JRE.看起来该文件已手动复制到JRE目录.这是错误的,并且很可能是崩溃的原因.您必须正确安装MSSQL JDBC驱动程序,并将-Djava.library.path JVM参数设置为指向具有驱动程序本机库的目录.

Obviously, sqljdbc_auth.dll does not belong to JRE. Looks like this file was copied manually to JRE directory. This is wrong, and most likely the reason of the crash. You have to install MSSQL JDBC driver correctly and set -Djava.library.path JVM argument to point to the directory with driver native libraries.

这篇关于"Java运行时环境已检测到致命错误".在另一台计算机上运行Java项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆