当前位置:   article > 正文

C++通过JNI调用jar包CallStaticObjectMethod返回为空

callstaticobjectmethod
JavaVMInitArgs vm_args;
JavaVMOption options[3];
JavaVM* jvm = NULL;
JNIEnv* env = NULL;


RtlZeroMemory(&vm_args, sizeof(JavaVMInitArgs));
options[0].optionString = "-Djava.compiler=NONE";
options[1].optionString = "-Djava.class.path=.;E:\\encrypt_sdk.jar;E:\\bcprov-jdk16-143.jar";
options[2].optionString = "-verbose:NONE";




vm_args.version = JNI_VERSION_1_4;
vm_args.nOptions = 3;
vm_args.options = options;
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/158478
推荐阅读
相关标签
  

闽ICP备14008679号