Returning List<String> or String[][] in JNI

Hi,

I am calling a native function in C++ from Java which has to return List<String> or String[][]. Is this possible?

The java declaration is - private native List<String> GetListNative();

In C++ the declaration is:

JNIEXPORT jobject JNICALL Java_com_GetListNative

(JNIEnv *env, jobject obj);

Please help!

Thanks in advance...

Message was edited by:

arjundg

[425 byte] By [arjundga] at [2007-11-27 10:20:38]
# 1

try treating String[][] as array of arrays of strings

I mean consider your 2D array as a 1D array and each of its elements is an array of Strings

I think this will work

minashokrya at 2007-7-28 17:04:50 > top of Java-index,Java HotSpot Virtual Machine,Specifications...