Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: JDWP Unable to get JNI 1.2 environment

Tags:

java

eclipse

jdwp

I get this error after debugging in Eclipse. The debug is successful though.

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] 

What does it mean?

like image 763
Carlos Blanco Avatar asked Feb 08 '10 23:02

Carlos Blanco


1 Answers

Just add System.exit(0); to the end of your main method.

That's all you have to do.

like image 126
Vasile Surdu Avatar answered Oct 17 '22 18:10

Vasile Surdu