Java运行时环境检测到致命错误 - .EXCEPTION_ACCESS_VIOLATION
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java运行时环境检测到致命错误 - .EXCEPTION_ACCESS_VIOLATION相关的知识,希望对你有一定的参考价值。
当我尝试加载JNI C / C ++ dll库时出现此错误,我注意到它说“崩溃发生在本机代码中的Java虚拟机之外”。不确定那是什么意思?任何帮助将不胜感激!
Java源代码如下:
package demojni;
public class Main {
static {
System.load("C:\Users\Nicholas1\Documents\NetBeansProjects\DemoJNI_Lib\dist\DemoJNI_Lib.dll"); // Load native library at runtime
// hello.dll (Windows) or libhello.so (Unixes)
}
// Declare a native method sayHello() that receives nothing and returns void
// Test Driver
public static void main(String[] args) {
new Main().sayHelloWorld(); // invoke the native method
}
private native void sayHelloWorld();
}
C源代码如下:
#include "DemoJNI_Lib.h"
#include <stdio.h>
JNIEXPORT void JNICALL Java_demojni_Main_sayHelloWorld
(JNIEnv * env, jobject obj){
printf("Hello World
");
}
JNI C-header-源代码如下:
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class demojni_Main */
#ifndef _Included_demojni_Main
#define _Included_demojni_Main
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: demojni_Main
* Method: sayHelloWorld
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_demojni_Main_sayHelloWorld
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
运行Main.java文件时出错:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000002c2ed90, pid=7552, tid=0x0000000000001e2c
#
# JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C 0x0000000002c2ed90
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:UsersNicholas1DocumentsNetBeansProjectsDemoJNIhs_err_pid7552.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
C:UsersNicholas1AppDataLocalNetBeansCache8.2executor-snippets
un.xml:53: Java returned: 1
BUILD FAILED (total time: 27 seconds)
错误日志(hs_err_pid7552.log):
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000002c2ed90, pid=7552, tid=0x0000000000001e2c
#
# JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C 0x0000000002c2ed90
#
# 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:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00000000013dd800): JavaThread "main" [_thread_in_native, id=7724, stack(0x0000000002b30000,0x0000000002c30000)]
siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x0000000002c2ed90
Registers:
RAX=0x000000000000000a, RBX=0x0000000014de0360, RCX=0x00000001802e4ae0, RDX=0x0000000000000000
RSP=0x0000000002c2f140, RBP=0x0000000002c2f160, RSI=0x0000000020200021, RDI=0x00000000ffffffff
R8 =0x0000000002c2f0dc, R9 =0x000000018013c900, R10=0x0000000002c30000, R11=0x0000000002c2ed90
R12=0x0000000000000000, R13=0x0000000014de0360, R14=0x0000000002c2f1f8, R15=0x00000000013dd800
RIP=0x0000000002c2ed90, EFLAGS=0x0000000000010247
Top of Stack: (sp=0x0000000002c2f140)
0x0000000002c2f140: 0000000002c2f400 00000000013dd800
0x0000000002c2f150: 0000000014de0360 0000000020200021
0x0000000002c2f160: 0000000002c2f1d8 0000000002d97f74
0x0000000002c2f170: 00000000013dd9f8 0000000002c2f1f8
0x0000000002c2f180: 0000000020200021 00000000013dd800
0x0000000002c2f190: 0000000002d97ca2 0000000002c2f198
0x0000000002c2f1a0: 0000000014de0360 0000000002c2f1f8
0x0000000002c2f1b0: 0000000014de0460 0000000000000000
0x0000000002c2f1c0: 0000000014de0360 0000000000000000
0x0000000002c2f1d0: 0000000002c2f1f8 0000000002c2f240
0x0000000002c2f1e0: 0000000002d8835d 0000000000000000
0x0000000002c2f1f0: 0000000002d919d8 00000000eb26c8f8
0x0000000002c2f200: 0000000002c2f200 0000000014de02bf
0x0000000002c2f210: 0000000002c2f250 0000000014de0460
0x0000000002c2f220: 0000000000000000 0000000014de02d8
0x0000000002c2f230: 0000000002c2f1f8 0000000002c2f250
Instructions: (pc=0x0000000002c2ed90)
0x0000000002c2ed70: 1e 00 1f 00 00 00 00 00 1d fc 1e 80 01 00 00 00
0x0000000002c2ed80: 00 00 00 00 00 00 00 00 cb 17 2a 47 f8 7f 00 00
0x0000000002c2ed90: 00 d8 3d 01 00 00 00 00 f8 f1 c2 02 00 00 00 00
0x0000000002c2eda0: 60 03 de 14 00 00 00 00 00 00 00 00 00 00 00 00
Register to memory mapping:
RAX=0x000000000000000a is an unknown value
RBX={method} {0x0000000014de0368} 'sayHelloWorld' '()V' in 'demojni/Main'
RCX=0x00000001802e4ae0 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x0000000002c2f140 is pointing into the stack for thread: 0x00000000013dd800
RBP=0x0000000002c2f160 is pointing into the stack for thread: 0x00000000013dd800
RSI=0x0000000020200021 is an unknown value
RDI=0x00000000ffffffff is an unallocated location in the heap
R8 =0x0000000002c2f0dc is pointing into the stack for thread: 0x00000000013dd800
R9 =0x000000018013c900 is an unknown value
R10=0x0000000002c30000 is pointing into the stack for thread: 0x00000000013dd800
R11=0x0000000002c2ed90 is pointing into the stack for thread: 0x00000000013dd800
R12=0x0000000000000000 is an unknown value
R13={method} {0x0000000014de0368} 'sayHelloWorld' '()V' in 'demojni/Main'
R14=0x0000000002c2f1f8 is pointing into the stack for thread: 0x00000000013dd800
R15=0x00000000013dd800 is a thread
Stack: [0x0000000002b30000,0x0000000002c30000], sp=0x0000000002c2f140, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000002c2ed90
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j demojni.Main.sayHelloWorld()V+0
j demojni.Main.main([Ljava/lang/String;)V+7
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00000000153de000 JavaThread "Service Thread" daemon [_thread_blocked, id=6960, stack(0x0000000017200000,0x0000000017300000)]
0x000000001538c000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=5380, stack(0x0000000016d00000,0x0000000016e00000)]
0x0000000015383000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=10140, stack(0x0000000016c00000,0x0000000016d00000)]
0x000000001537d800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=6316, stack(0x0000000016b00000,0x0000000016c00000)]
0x000000001537c000 JavaThread "Attach Listener" daemon [_thread_blocked, id=10072, stack(0x0000000016a00000,0x0000000016b00000)]
0x000000001537a800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5612, stack(0x0000000016900000,0x0000000016a00000)]
0x000000001536a800 JavaThread "Finalizer" daemon [_thread_blocked, id=6568, stack(0x00000000165f0000,0x00000000166f0000)]
0x0000000002d6f000 JavaThread "Reference Handler" daemon [_thread_blocked, id=9964, stack(0x00000000164f0000,0x00000000165f0000)]
=>0x00000000013dd800 JavaThread "main" [_thread_in_native, id=7724, stack(0x0000000002b30000,0x0000000002c30000)]
Other Threads:
0x0000000015346800 VMThread [stack: 0x00000000163f0000,0x00000000164f0000] [id=7392]
0x0000000016e48000 WatcherThread [stack: 0x0000000017300000,0x0000000017400000] [id=9832]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
PSYoungGen total 18944K, used 983K [0x00000000eb200000, 0x00000000ec700000, 0x0000000100000000)
eden space 16384K, 6% used [0x00000000eb200000,0x00000000eb2f5c90,0x00000000ec200000)
from space 2560K, 0% used [0x00000000ec480000,0x00000000ec480000,0x00000000ec700000)
to space 2560K, 0% used [0x00000000ec200000,0x00000000ec200000,0x00000000ec480000)
ParOldGen total 44032K, used 0K [0x00000000c1600000, 0x00000000c4100000, 0x00000000eb200000)
object space 44032K, 0% used [0x00000000c1600000,0x00000000c1600000,0x00000000c4100000)
Metaspace used 2593K, capacity 4486K, committed 4864K, reserved 1056768K
class space used 282K, capacity 386K, committed 512K, reserved 1048576K
Card table byte_map: [0x0000000012140000,0x0000000012340000] byte_map_base: 0x0000000011b35000
Marking Bits: (ParMarkBitMap*) 0x00000000774aa6c0
Begin Bits: [0x0000000012890000, 0x0000000013838000)
End Bits: [0x0000000013838000, 0x00000000147e0000)
Polling page: 0x0000000001210000
CodeCache: size=245760Kb used=1104Kb max_used=1105Kb free=244655Kb
bounds [0x0000000002d80000, 0x0000000002ff0000, 0x0000000011d80000]
total_blobs=255 nmethods=24 adapters=145
compilation: enabled
Compilation events (10 events):
Event: 0.123 Thread 0x000000001538c000 20 s 3 java.lang.StringBuffer::append (13 bytes)
Event: 0.124 Thread 0x0000000015383000 22 4 java.lang.String::charAt (29 bytes)
Event: 0.124 Thread 0x000000001538c000 nmethod 20 0x0000000002e90510 code [0x0000000002e906c0, 0x0000000002e90dd8]
Event: 0.124 Thread 0x000000001538c000 21 3 java.lang.String::equals (81 bytes)
Event: 0.125 Thread 0x000000001538c000 nmethod 21 0x0000000002e91190 code [0x0000000002e91320, 0x0000000002e91870]
Event: 0.125 Thread 0x000000001538c000 23 3 java.lang.AbstractStringBuilder::append (50 bytes)
Event: 0.125 Thread 0x0000000015383000 nmethod 22 0x0000000002e94710 code [0x0000000002e94860, 0x0000000002e94918]
Event: 0.126 Thread 0x000000001538c000 nmethod 23 0x0000000002e93ad0 code [0x0000000002e93ca0, 0x0000000002e943f8]
Event: 0.126 Thread 0x000000001538c000 24 3 java.util.Arrays::copyOfRange (63 bytes)
Event: 0.127 Thread 0x000000001538c000 nmethod 24 0x0000000002e92850 code [0x0000000002e92a60, 0x0000000002e93598]
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (2 events):
Event: 0.050 Thread 0x00000000013dd800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x00000000eb207c78) thrown at [C:
eworkspace8-2-build-windows-amd64-cygwinjdk8u1117883hotspot
Event: 0.050 Thread 0x00000000013dd800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x00000000eb207f60) thrown at [C:
eworkspace8-2-build-windows-amd64-cygwinjdk8u1117883hotspotsrcsharevmprims
Events (10 events):
Event: 0.275 loading class java/security/BasicPermissionCollection
Event: 0.275 loading class java/security/BasicPermissionCollection done
Event: 0.276 loading class sun/launcher/LauncherHelper$FXHelper
Event: 0.276 loading class sun/launcher/LauncherHelper$FXHelper done
Event: 0.276 loading class java/lang/Class$MethodArray
Event: 0.276 loading class java/lang/Class$MethodArray done
Event: 0.276 loading class java/lang/Void
Event: 0.276 loading class java/lang/Void done
Event: 4.121 Executing VM operation: EnableBiasedLocking
Event: 4.121 Executing VM operation: EnableBiasedLocking done
Dynamic libraries:
0x00007ff6ddee0000 - 0x00007ff6ddf17000 C:Program FilesJavajdk1.8.0_111injava.exe
0x00007ff84a010000 - 0x00007ff84a1bc000 C:WindowsSYSTEM32
tdll.dll
0x00007ff849bf0000 - 0x00007ff849d2e000 C:Windowssystem32KERNEL32.DLL
0x00007ff8472a0000 - 0x00007ff8473b5000 C:Windowssystem32KERNELBASE.dll
0x00007ff845af0000 - 0x00007ff845b7e000 C:Windowssystem32apphelp.dll
0x00007ff822700000 - 0x00007ff822753000 C:WindowsAppPatchAppPatch64AcGenral.DLL
0x00007ff849b40000 - 0x00007ff849bea000 C:Windowssystem32msvcrt.dll
0x00007ff846f40000 - 0x00007ff846f6e000 C:WindowsSYSTEM32SspiCli.dll
0x00007ff8478a0000 - 0x00007ff8478f4000 C:Windowssystem32SHLWAPI.dll
0x00007ff847b00000 - 0x00007ff847c77000 C:Windowssystem32USER32.dll
0x00007ff8499a0000 - 0x00007ff849b34000 C:Windowssystem32ole32.dll
0x00007ff848020000 - 0x00007ff849539000 C:Windowssystem32SHELL32.dll
0x00007ff846710000 - 0x00007ff846731000 C:WindowsSYSTEM32USERENV.dll
0x00007ff849760000 - 0x00007ff84980a000 C:Windowssystem32ADVAPI32.dll
0x00007ff832a20000 - 0x00007ff832a3e000 C:WindowsSYSTEM32MPR.dll
0x00007ff849540000 - 0x00007ff849681000 C:Windowssystem32RPCRT4.dll
0x00007ff8476b0000 - 0x00007ff847709000 C:WindowsSYSTEM32sechost.dll
0x00007ff849df0000 - 0x00007ff84a001000 C:WindowsSYSTEM32combase.dll
0x00007ff847750000 - 0x00007ff8478a0000 C:Windowssystem32GDI32.dll
0x00007ff847170000 - 0x00007ff847185000 C:WindowsSYSTEM32profapi.dll
0x00007ff845220000 - 0x00007ff8452d2000 C:WindowsSYSTEM32SHCORE.dll
0x00007ff847710000 - 0x00007ff847746000 C:Windowssystem32IMM32.DLL
0x00007ff849810000 - 0x00007ff849962000 C:Windowssystem32MSCTF.dll
0x00007ff8448c0000 - 0x00007ff844b3a000 C:WindowsWinSxSamd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17810_none_6240b9c7ecbd0bdaCOMCTL32.dll
0x00000000505e0000 - 0x00000000506b2000 C:Program FilesJavajdk1.8.0_111jreinmsvcr100.dll
0x0000000076c90000 - 0x000000007752a000 C:Program FilesJavajdk1.8.0_111jreinserverjvm.dll
0x00007ff83c9a0000 - 0x00007ff83c9a9000 C:WindowsSYSTEM32WSOCK32.dll
0x00007ff844140000 - 0x00007ff844162000 C:WindowsSYSTEM32WINMM.dll
0x00007ff83fad0000 - 0x00007ff83fada000 C:WindowsSYSTEM32VERSION.dll
0x00007ff847900000 - 0x00007ff847907000 C:Windowssystem32PSAPI.DLL
0x00007ff847a40000 - 0x00007ff847a9a000 C:Windowssystem32WS2_32.dll
0x00007ff843cf0000 - 0x00007ff843d1a000 C:WindowsSYSTEM32WINMMBASE.dll
0x00007ff847c80000 - 0x00007ff847c89000 C:Windowssystem32NSI.dll
0x00007ff8475a0000 - 0x00007ff8475ef000 C:WindowsSYSTEM32cfgmgr32.dll
0x00007ff845f60000 - 0x00007ff845f88000 C:WindowsSYSTEM32DEVOBJ.dll
0x0000000050950000 - 0x000000005095f000 C:Program FilesJavajdk1.8.0_111jreinverify.dll
0x0000000050570000 - 0x0000000050599000 C:Program FilesJavajdk1.8.0_111jreinjava.dll
0x0000000050550000 - 0x0000000050566000 C:Program FilesJavajdk1.8.0_111jreinzip.dll
0x00000004a4640000 - 0x00000004a465a000 C:UsersNicholas1DocumentsNetBeansProjectsDemoJNI_LibdistDemoJNI_Lib.dll
0x0000000180040000 - 0x0000000180610000 C:cygwin64incygwin1.dll
0x00007ff83ca70000 - 0x00007ff83cbf9000 C:WindowsSYSTEM32dbghelp.dll
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Djava.library.path=C:UsersNicholas1DocumentsNetBeansProjectsDemoJNI_Libdist
java_command: demojni.Main
java_class_path (initial): C:UsersNicholas1DocumentsNetBeansProjectsDemoJNI_Libdist;C:UsersNicholas1DocumentsNetBeansProjectsDemoJNIuildclasses
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:Program FilesJavajdk1.8.0_111
PATH=C:ProgramDataOracleJavajavapath;C:Program Files (x86)SN SystemsPS3in;C:Program FilesDellDW WLAN Card;c:Program Files (x86)InteliCLS Client;c:Program FilesInteliCLS Client;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;c:Program FilesWIDCOMMBluetooth Software;c:Program FilesWIDCOMMBluetooth Softwaresyswow64;C:Program Files (x86)SkypePhone\%M2_HOME%in;C:Program Files (x86)GtkSharp2.12in;C:Program Files (x86)SkypePhone;C:Program Files (x86)Common FilesUlead SystemsMPEG;C:Program FilesmysqlMySQL Utilities 1.6;C:Program Files (x86)QuickTimeQTSystem;C:Program Files (x86)
odejs;C:cygwin64in;C:Program FilesJavajdk1.8.0_111in;C:UsersNicholas1AppDataRoaming
pm;C:Program Files (x86)FAHClient
USERNAME=Nicholas1
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 8.1 , 64 bit Build 9600 (6.3.9600.17415)
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2
Memory: 4k page, physical 4096180k(552828k free), swap 9339060k(3424740k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.111-b14) for windows-amd64 JRE (1.8.0_111-b14), built on Sep 22 2016 19:24:05 by "java_re" with MS VC++ 10.0 (VS2010)
time: Sun Apr 09 21:29:25 2017
elapsed time: 27 seconds (0d 0h 0m 27s)
以下是我在编译,链接和运行时遵循的步骤:
创建/编译头文件:
1. Open cmd prompt in “C:UsersNicholas1DocumentsNetBeansProjects”
2. Run “javah –o DemoJNI_Lib/DemoJNI_Lib.h –classpath DemoJNI/src demojni.Main”, where;
- “DemoJNI_Lib” is your C++ dynamic library project.
- DemoJNI_Lib.h declaration for your Java/C header for the C-class file.
- DemoJNI is the name of your java project with src folder.
- demojni is your java project package name
- Main is your main java file.
C / C ++项目的构建/链接器选项:
1. Right-click on DemoJNI_Lib project and select properties. Go to Build/C Compiler then look under General/Include Directories and click on directories button(…), then select Add button. Now select the include folder from “C:Program FilesJavajdk1.8.0_111include”, then select Add button and select the win32 folder from “C:Program FilesJavajdk1.8.0_111include/win32”, finally choose OK-button.
2. Right-click on DemoJNI_Lib project and select properties. Go to Build/C-Compiler find “Command Line”/”Additional Options”, then type “-shared –m32”
3. Right-click on DemoJNI_Lib project and select properties “Build”/”Linker”, find “General”/”Output”, then type dist/DemoJNI_Lib.dll
4. Optional:Add typedef long long __int64; or #define __int64 long long to top of DemoJNI_Lib.h file. Should be above #include <jni.h>.
5. Build .dll library file: in Netbeans find C/C++ project with c-file and header-file, then Project->(right click)->Clean and Build.
运行Java文件:
1. In Netbeans Select DemoJNI java project, Main.java->(Right-click)->Run
没有找到使用Cygwin C / C ++编译器的崩溃错误的确切解决方案,但此错误的替代解决方案是使用Microsoft Visual Studios C / C ++编译器。
这是使用Microsoft Visual Studios C / C ++编译器的JNI解决方案的链接:https://www.youtube.com/watch?v=tDhOPYi-rYE&spfreload=1
注意:如果您使用Microsoft Visual Studios C / C ++编译器进行JNI开发,
- 对于32位dll,使用“C: Program Files(x86) Microsoft Visual Studio 14.0 Common7 Tools”中的“vsvars32.bat”。
- 对于我的设置,我需要一个64位的dll文件,所以我使用了“C: Program Files(x86) Microsoft Visual Studio 14.0 VC bin amd64”中找到的“vcvars64.bat”
在win64系统上更新java 8之后,我也反驳了这个问题。如果我们看到日志你会发现“windows-amd64”,我不知道为什么?我按照以下步骤来解决这个问题。
1.从添加 - 删除程序中删除JAVA 8更新
2.删除包含临时目录
3.重新启动PC。
4.立即更新java 8。
5.检查路径C:Program FilesJavajdk1.8.0_152lib
它不应该显示文件夹“windows-amd64”。
6.立即检查服务器。
希望这可以帮助。
以上是关于Java运行时环境检测到致命错误 - .EXCEPTION_ACCESS_VIOLATION的主要内容,如果未能解决你的问题,请参考以下文章
在 ECLIPSE 中运行并发 Java NIO Server(Netty) 时,Java 运行时环境检测到一个致命错误
Java 运行时环境检测到一个致命错误。 EXCEPTION_ACCESS_VIOLATION
将系统ram升级到16 GB面临错误:Java运行时环境检测到致命错误: