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!

How to convert HashMap from Java to JNI(c++)

843829Jun 12 2007 — edited Jun 13 2007
We are currently using JNI for transferring simpele/primitive types from Java to C++ successfully.
1) How JNI is enables to convert complex objects such as hashMap, Vectores from Java to C++ and vice versa.
2) We want to send a Hashmap .We try to send the Hashmap as a "jobject". The question is how can we convert this object to a known MAP in JNI(C++).
3) is there a better way to convert the HashMap ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2007
Added on Jun 12 2007
4 comments
6,793 views