K
kapil
Hi everybody,
I am facing an error while running JNI COM object in ASP. I was
wondering if someone have the solution tothe problem.
Thanks in advance.
The problem is...
Steps are:
1.Created one C++ Win32 dll to call a Java code Using JNI.
In that I am Creating JVM and Destroying the JVM.
to create the JVM Code-
JavaVMOption options[2];
options[0].optionString ="-Djava.class.path=" ";
options[1].optionString = buffer;
vm_args.version = JNI_VERSION_1_4;
vm_args.options = options;
vm_args.nOptions = 2;
vm_args.ignoreUnrecognized = 1;
JNI_CreateJavaVM (&jvm, (void**)&env,&vm_args);
For destroying it Code-
jvm->DestroyJavaVM();
2.Created 1 COM wrapper in VB to call the method of Win32 dll.
when using the COM Wrapper with .NET application its working fine.
But,when using the COM with ASP ,opening the page in Browser once it is
working fine,but next time when opening it says that JVM is not
created.
When restarting the IIS server it gives the right result.
To get the correct result everytime i need to restart the IIS server
and inetinfo preocess.
Can anybody tell me what is the problem and how to resolve it.
Thanks
I am facing an error while running JNI COM object in ASP. I was
wondering if someone have the solution tothe problem.
Thanks in advance.
The problem is...
Steps are:
1.Created one C++ Win32 dll to call a Java code Using JNI.
In that I am Creating JVM and Destroying the JVM.
to create the JVM Code-
JavaVMOption options[2];
options[0].optionString ="-Djava.class.path=" ";
options[1].optionString = buffer;
vm_args.version = JNI_VERSION_1_4;
vm_args.options = options;
vm_args.nOptions = 2;
vm_args.ignoreUnrecognized = 1;
JNI_CreateJavaVM (&jvm, (void**)&env,&vm_args);
For destroying it Code-
jvm->DestroyJavaVM();
2.Created 1 COM wrapper in VB to call the method of Win32 dll.
when using the COM Wrapper with .NET application its working fine.
But,when using the COM with ASP ,opening the page in Browser once it is
working fine,but next time when opening it says that JVM is not
created.
When restarting the IIS server it gives the right result.
To get the correct result everytime i need to restart the IIS server
and inetinfo preocess.
Can anybody tell me what is the problem and how to resolve it.
Thanks