开发者

JNI invocation api: get method id for method with multiple parameters

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 ?


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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜