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 ?

Xinus
  • 29,617
  • 32
  • 119
  • 165

1 Answers1

5

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
  • 69,011
  • 20
  • 139
  • 164