How can I pass a TreeMap – Map< String, int[ ] > treeMap – from Java to C++ via JNI ?
At the moment I pass a String array ( = keys) from Java to C++ and initialize a map – std::map< std::string, std::vector > myMapVector – in C++.
In a second method I pass a string = key and an int array from Java and fill the vector in my previously created map.
Thank you.
You can pass the TreeMap and use it directly:
http://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/design.html#wp1253