How to solve this problem has been for a long time ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/ share/back/util.c:820]
How to Solve This Error:
This problem is caused by the debug timeout, if you debug running fast, it seems that this problem will not occur, if the time process is caused by too many single step jumps, this problem will occur. Anyway, you can add
System.exit(0);
at the end of the main method to solve this problem.