ERROR: JDWP Unable to get JNI 1.2 environment?

  • Thread starter nooneinparticular314159
  • Start date
N

nooneinparticular314159

I'm running java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05) under NetBeans
IDE 6.0 (Build 200711261600), which I believe is the latest version.

I get the following error after my programs complete (my programs
compile and run without error):

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]

Any idea what is causing this, and how I can fix it?

Thanks!
 
G

Gordon Beaton

On Sun, 27 Jan 2008 21:02:54 -0800 (PST),
I get the following error after my programs complete (my programs
compile and run without error):

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]

Try adding System.exit(0) to your application.

That and other suggestions can be found here, which I found by
googling your error messag:

http://forum.java.sun.com/thread.jspa?threadID=5159038

It's been reported as a bug too:

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

/gordon

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top