Alex Rivera | Logout

JNI: Create HashMap

Asked 2011-01-30T16:34:57.907
16

How do I create a HashMap object in JNI?

Edit
Report

1 Answer

3

For me I found that the signature of the "put" method needed to be different from that listed in the example above. i.e.

jmethodID put = env->GetMethodID(mapClass, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;");
answered 2012-12-18T16:51:01.077

Your Answer