class not found when accessing jar
Hello,
The dll gets correctly loaded but when the cpp code tries to find the java class from where it is invoked, it throws an error for class not found. My cpp code is given below :
JNIEnv *_env = 0;
jclass _clazz = 0;
char className[] = abcd/xyz/myClass";
_clazz = _env->FindClass(className);
if(_clazz == NULL){
log("class not found",className);
}
Now this scenario is failing under Maven, but when tested on Eclipse IDE, works perfectly fine. I have put the jars on the java classpath.
What am I missing here ?
sk

