jvm - jobjectArray. How to get strng from it?
Okay, I have to add another native method, but this time I dont know how to do it... well....
In Java I have:
Code:
public native void foo(......., ........, String args[]);
and In C I recevie
Code:
....., jobjectArray args)
Do anyone know how to get the C char strings from jobjectArray? Thats my problem... thanks for advice...
PS: I tried with env->GetObjectArrayElement but I dont know how to:
1. get the lenght of jobjectArray
2. convert jobject (that represent one String?) to chars....
Sungron :)