ERROR: JDWP Unable to get JNI 1.2 environment February 12, 2023 by Tarik Just add System.exit(0); to the end of your main method. That’s all you have to do.