Take a look at Accessing Basic Types, Strings, and Arrays using JNI. Section 3.3 details how to access both primitive and object arrays in C/C++ code.