I have exactly the same problem an dI am too under Windows 2000. I currently use the jni.h, jni_md.h, jvm.lib and jvm.dll from my JDK1.3.1 directory.
I have checked the JNI version I use and the one I specifie in the JVM reation. I think I am right with the JNI 1.2 version.
BUT : -1 is always the result I get ...
I have seen that someone advised putting the jvm.dll on the system path.
Does it fix the problem under windows2000 ?
If yes, could you explain me a little bit more precisely what do you mean by "putting the jvm.dll on the system path" ?