How to type cast from AccessibleContext to jobject

I have an AccessibleContext and type cast it to jobject:

long accID;

jobject obj = (jobject) accID ;

Type casting seems to be successfull but I cannot get class ofobj :

cls = env->GetObjectClass(obj); //JNIEnv* env

Please help me to fix this one. I appreciate your response. Thanks

[329 byte] By [moibelgala] at [2007-11-27 7:46:23]
# 1
When you say AccessibleContext, do you mean javax.accessibility.AccessibleContext? Are you passing this object from Java to C++? Why is defined as a long? It's not clear from your code. Maybe be more details will help understanding your problem.
kteegalaa at 2007-7-12 19:27:15 > top of Java-index,Java HotSpot Virtual Machine,Specifications...