Using NewWeakGlobalRef in JNI code results in undefined symbol error

Clemens Eisserer linuxhippy at
Fri Mar 4 13:13:17 PST 2011


When using NewWeakGlobalRef or NewGlobalRef in my JNI code, I get the
following error while loading the native library:

> /home/ce/renderfix/build/linux-i586/bin/java: symbol lookup error: /home/ce/renderfix/build/linux-i586/lib/i386/ undefined symbol: NewWeakGlobalRef

Do I have to link manually against some libraries to get access to
those functions?

Thank you in advance, Clemens

More information about the hotspot-runtime-dev mailing list