Using NewWeakGlobalRef in JNI code results in undefined symbol error

Clemens Eisserer linuxhippy at
Sat Mar 5 00:18:12 PST 2011

Hi Keith,

> Where are you finding the prototype for NewWeakGlobalRef as a global?  I
> don't see that in jni.h.  Are you sure you're accessing it through the JNI
> function table (JNIEnv*)?

Oh stupid me, I really forgot to access it through the JNI function table.
Thanks a lot, works perfect now.

- Clemens

More information about the hotspot-runtime-dev mailing list