ERROR: JDWP Unable to get JNI 1.2 environment

failed to get JNI 1.2 environment, JVM ->

ERROR: JDWP is Unable to get JNI 1.2 environment, JVM -> The GetEnv () return code = – 2

the JDWP exit error AGENT_ERROR_NO_JNI_ENV (183) : [… /… /…/SRC/share/back/util. C: 820]

to find the reason for the error. Found a problem with redirecting the output.

is the following is the original network data

install jdk1.6, ha ha ~ I also met this problem. This is something I found on the Internet before. I hope it will be helpful to you.

ERROR: JDWP incapable to get JNI 1.2 environment, JVM -> The GetEnv () return code = – 2

the JDWP exit error AGENT_ERROR_NO_JNI_ENV (183) : [… /… /…/SRC/share/back/util. C: 820]

this is going on?Now Java SE 6 has reached the stage of RC, huh?

after I looked up the Java Doc carefully, I found that there is such a paragraph: http://download.java.net/jdk6/docs/api/java/io/Console.html

“been a virtual machine from a console is dependent upon the physicist platform and also upon the manner in which the virtual machine is invoked. If the virtual machine is started from an interactive command line without redirecting the standard input and
output streams then its console will exist and will typically be connected to the keyboard and display from which the virtual machine was launched. If the virtual machine is started automatically, for example by a background job scheduler, Then it will typically

1, use the command line to run, compile can use the integrated development environment. This completes standard output. 2. Redirect stdout in the program to another device or mode (such as writing to a text file), which can also be “inconvenient” to complete the function. 3. At the end of main function, add system.exit(0);

note:

return and system.exit() what is the difference between:

1. Return is the upper level of the program, system. Exit () is the top level of the program

2

Read More: