use of CallStaticVoidMethod
I've got a problem when trying to retrieve "args" argument in java class main method
my C code is equivallent to :
void MyFunction()
{
...
mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
env->CallStaticVoidMethod(cls, mid, "ABC");
...
}
my java code is equivallent to :
class MyClass {
public static void main( String[] args ) {
for( int i = 0 ; i < args.length ; i++ )
{
myFunction( args ) ;
}
}
}
When running : java MyClass, all is ok
When running MyClass trough MyFunction args.length or args makes my soft break down
Can anyone explain me the phenomenon ? How can I solve this problem
JCC

