I found the solution! My java classes are located in: package my.package; If you compile the dll in Visual C++ 2006, change line 109 of JNIsiapp.c to static jobject __gObj={0}; And line 1988 fid = (*env)->GetFieldID(env, cls, "event", "LJNIsiapp$SiSpwEvent;"); to fid = (*env)->Ge...
Thanks jim, I downloaded the JNI example on the ftp, and it works fine if you leave the JNIsiapp.class in the default package. Unfortunatly, if you try to put it in another package ( materiel.capteur3d in my case), it fails without any exception. I get a loop of the message "SpacemouseDevice: ...