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:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000062478337, pid=2860, tid=0x0000000000000e84
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)
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
If you would like to submit a bug report, please visit:
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
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.