JNI-Very Urgent Converting String Array to Charcter Array in JNI
I am writing a java console application. while running that needs to pass some arguments from command prompt. So i need to process those all arguments in c++ code using JNI.
The following is my JavaCode:
class RetArray{
public native int readArray(String[][] argsArr);
static{
System.loadLibrary("readArray");
}
public static void main (String[] args){
RetArray objRetArr = new RetArray();
String[][] argu = new String[5][];
int i = objRetArr.readArray(argu);
}
}
can u plz provide me the code in c++ ?

