在用eclipse调试的时候,偶尔会出现下面的错误,jdk1.6.0-rc10:
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
解决方法:
在程序最后,main()函数中添加:
System.exit(0);
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
解决方法:
在程序最后,main()函数中添加:
System.exit(0);
这是eclipse与jdk1.6的兼用问题,