views:

70

answers:

1

I want to call java function from c++ which takes multiple parameters , I have tried following statement

mid=env->GetMethodID(JDeployerClass,"deploy","(Ljava/io/File;,Lorg/glassfish/api/deployment/DeployCommandParameters;)Ljava/lang/String;");

But its not working out, is there anything wrong with above statement?, What is the correct way to get method id which accepts multiple parameters ?

+3  A: 

The signature is likely wrong.

Try the following signature: (Ljava/io/File;Lorg/glassfish/api/deployment/DeployCommandParameters;)Ljava/lang/String;

which corresponds to the following Java method:

String deploy(File f, DeployCommandParameters p);
Gregory Pakosz
thanks , worked perfectly :)
Xinus
you're welcome.
Gregory Pakosz