在JDK1.6版本中出现如此问题,需要在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]
本文介绍了一个在JDK1.6版本中遇到的问题:无法获取JNI1.2环境,jvm->GetEnv()返回-2的错误。通过在main函数末尾添加System.exit(0);解决了该问题。
在JDK1.6版本中出现如此问题,需要在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]
被折叠的 条评论
为什么被折叠?