ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2

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的一个bug,参考:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6476706

 


在main()函数的最后添加:

 


System.exit(0);

 

posted @ 2013-10-28 20:33  flydico  阅读(286)  评论(0编辑  收藏  举报