how to call jvmdi in jni?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Flywind_shao
Posted On:   Tuesday, March 11, 2003 07:19 PM

I wrote a dll named "jvmdi_test.dll".
It can work fine, if i called by "java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjvmdi_test:test,test".
But it failed by follow:
options[0].optionString = "-Djava.class.path=. -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjvmdi_test:test,test";
memset(&vm_args, 0, sizeof(vm_args));
vm_args.version = JNI_VERSION_1_4;
vm_args.nOptions = 1;
vm_args.options = options;
status = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
// status == 0, create jvm succeeded
// but it not call my jvmdi_test.dll's function.

About | Sitemap | Contact