B Zen
2010-03-17 21:56:31 UTC
I am writing an application that creates a native thread using pthread
library. I need to then invoke a Java method from this native thread.
As per my understanding, the native thread needs to be attached to JVM
in order to invoke a Java method from native thread.
JNI_CreateJavaVM() is the method that returns the reference to JVM
which can then be used to attach a native thread to JVM. This method
is listed in "jni.h" but when I try to compile the library, it gives
me "undefined reference" error for JNI_CreateJavaVM(). I searched
through some older posts and found out that this API is part of
libdvm.so library. However, I can't find this library in either NDK or
SDK directories.
Can someone please let me know where can I find libdvm.so and how can
I add it to my JNI build?
Thanks
B
library. I need to then invoke a Java method from this native thread.
As per my understanding, the native thread needs to be attached to JVM
in order to invoke a Java method from native thread.
JNI_CreateJavaVM() is the method that returns the reference to JVM
which can then be used to attach a native thread to JVM. This method
is listed in "jni.h" but when I try to compile the library, it gives
me "undefined reference" error for JNI_CreateJavaVM(). I searched
through some older posts and found out that this API is part of
libdvm.so library. However, I can't find this library in either NDK or
SDK directories.
Can someone please let me know where can I find libdvm.so and how can
I add it to my JNI build?
Thanks
B
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to android-***@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to android-***@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.