[BRLTTY] BRLTTY Java bindings -- UnsatisfiedLinkError

Samuel Thibault samuel.thibault at ens-lyon.org
Wed May 27 05:42:17 EDT 2009


Simon Meers, le Wed 27 May 2009 14:57:46 +1000, a écrit :
> Unfortunately the Firefox extension seems to use Sun rather than gcj, so I'll
> need to get the native code to play ball with Sun :(
> According to my debugging so far, it is not GET_ID that has the problem; the
> crash occurs at this line:
> 
> 
>       (*jenv)->SetLongField(jenv, jcls, handleID, (jlong) (intptr_t) handle);
> 
> 
> in the native openConnection method, which would better explain the error
> description:
> 
> 
>     FATAL ERROR in native method: Instance field not found in JNI get/set field
>     operations

What is called `instance field' is the handleID which is precisely
fetched by the GET_ID() macro.  The type of the field (long) matches the
signature used in GET_ID("j"), we even handle the failure case, I really
don't know what could go wrong...

Samuel


More information about the BRLTTY mailing list