In my project requirement. I want to load 2 jar files after JVM create return success in C++.
In JVM startup parameter I passed the classpath as the location of jar files,
When through JNI interface I tried to find the class inside the jar file it says file not found.
previously I used to pass the jar file as a startparameter to JVM like below -
options[0].optionString = "..\\..\\ASkl.jar";
options[1].optionString = "..\\..\\BSkl.jar";
...
JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
...
env->FindClass("ASkl/ClassA");<---work fine
but when I'm not passing jar file as a startup parameter it is not working.
Can anybody help is there any way to load jar files in native code????
In JVM startup parameter I passed the classpath as the location of jar files,
When through JNI interface I tried to find the class inside the jar file it says file not found.
previously I used to pass the jar file as a startparameter to JVM like below -
options[0].optionString = "..\\..\\ASkl.jar";
options[1].optionString = "..\\..\\BSkl.jar";
...
JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
...
env->FindClass("ASkl/ClassA");<---work fine
but when I'm not passing jar file as a startup parameter it is not working.
Can anybody help is there any way to load jar files in native code????