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!

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

843829Jul 12 2007 — edited Jul 23 2007
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2007
Added on Jul 12 2007
1 comment
520 views