Debugging is complete. If the following content appears on the console:
Error: Jdwp Unable To Get JNI 1.2Environment, JVM-> getenv () return code =-2JdwpExit error agent_error_no _JNI_ ENV (183): [.../src/share/back/util. C: 820]
Add the following statement at the end of the Code: system. Exit (0) (add system. Exit (0); at the end of the main function );),
Note: you only need to add it in this case and do not need it during the official operation.
Note:
What is the difference between return and system. Exit:
1. Return is the upper layer of the returned program, and system. Exit () is the upper layer of the returned program.
2. Return interrupts the current method. system. Exit () interrupts the entire program. The JVM should be disabled.
From: http://blog.csdn.net/config_man/archive/2010/03/17/5390831.aspx
And http://apps.hi.baidu.com/share/detail/22479756