4

When I try to debug this error is reported:

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]

Kev
  • 118,037
  • 53
  • 300
  • 385
Ashley
  • 47
  • 1
  • 1
  • 2
  • Sometime I meet this error when I commented all the code in Main function => Empty main. The solution is put some code in your main function, don't let it to be empty :D – Andiana Jun 28 '16 at 02:37

3 Answers3

6

Put System.exit(0); as the last statement of main().

pramod
  • 61
  • 1
  • 1
4

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6476706

Its a known bug. That bug has a listing of possible workarounds to your problem.

Kal
  • 24,724
  • 7
  • 65
  • 65
-1

When you have this kind of error The TypeSystemHolder.class generated by WSDL2Java is not be placed in your classpath in order to avoid this error.

Please copy TypeSystemHolder.class from "resource/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54" folder.

And Paste TypeSystemHolder.class file into your classpath folder (build/classes/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54) folder

Amit Yadav
  • 39
  • 1