Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jbooleanArray -> char [ ]

843829Mar 6 2003 — edited Mar 6 2003
Iam new to use jni & C so this is a simple question for you.

I got this:
JNIEXPORT void JNICALL test(JNIEnv *env, jobject obj, jbooleanArray y){
}

the native methode to call is this: callMe(char [50])

I have tried with this, but it's not working:
char *x = env->GetBooleanArrayElements(y,0);
callMe(x);




Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2003
Added on Mar 6 2003
1 comment
347 views