I am working with JNI and I have to pass in some generic types to the C++. I am stuck with how to approach this on the C++ side
HashMap
It depends on what you're trying to map to and if they are yours to change.
Here are a few directions I'd try to go about (if i were you, that is :) ):
This has been asked before and you might want to resort to Luis' arrays solution.