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

[594 byte] By [k_sudhana] at [2007-11-27 8:20:56]
# 1
Many JNI methods (anything that simulates a java call) should check for java exceptions after the call. You are not doing that.The exception would tell you the message.If it is in fact a class not found exception then just as in java the reason is that your class path is
jschella at 2007-7-12 20:09:21 > top of Java-index,Java HotSpot Virtual Machine,Specifications...