“A fatal error has been detected by the Java Runtime Environment” when running java project on another computer

陌路散爱 提交于 2019-12-06 10:36:09

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.

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

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.

I had same issue today in Intellij. I resolved it by pointing to new JRE version.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!