Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jni code compiles on linux but not windows

843829Jun 2 2008 — edited Jun 5 2008
I am trying to write a cross platform jni library on ubuntu.

I am able to compile the linux version no problems.

I have tried both GCC and Mingw toolchains to try and make a windows dll and both end up with the same 201 errors starting with:
const struct JNIInvokeInterface_� has no member named �AttachCurrentThread�	
This error comes from line 1896 of jni.h
which is
return functions->AttachCurrentThread(this, penv, args);
Does anyone have any insight into the cause of this?

PS: a helloworld example worked under all 3 toolchains, it is only when I start using JNI that the windows ones stop working.

Also, I am indeed including the latest win32 includes (where jni_md.h is found)

Thoughts?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2008
Added on Jun 2 2008
3 comments
386 views