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++ ?

[587 byte] By [Anand_Bala2007a] at [2007-11-27 0:56:56]
# 1

While you are waiting for someone to write you code for you, you might want to consider an alternative solution.....

Write a c application that takes the arguments for the command line and runs the c code.

Based on what you said that is all you need - no java at all.

But if you still want java then you can use Runtime.exec() to call the above c app.

jschella at 2007-7-11 23:30:14 > top of Java-index,Java HotSpot Virtual Machine,Specifications...