[Info-vax] Groovy on VMS
Lawrence D'Oliveiro
ldo at nz.invalid
Mon Mar 4 16:25:23 EST 2024
On Mon, 4 Mar 2024 15:49:27 -0500, Arne Vajhøj wrote:
> JNI is tricky (read: it sucks).
I managed to do some stuff in Android with it, back in the day. I
created a Python script
<https://bitbucket.org/ldo17/jniglue/src/master/> that generates
slightly more convenient wrappers around the entry points in the
JNIEnv object, e.g. for the NewStringUTF method:
static inline jstring JNNewStringUTF(JNIEnv* env, const char* a1)
{
return
(**env).NewStringUTF(env, a1);
} /*NewStringUTF*/
so you call it like this:
const jstring msgobj = JNNewStringUTF(env, usebuf);
I felt it made things much more bearable.
More information about the Info-vax
mailing list