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!

Pass an array of integers from C to Java with JNI

JoaquinDec 23 2010 — edited Dec 27 2010
Hello,
I have a C function that returns a struct me. The fields of this struct are all of type integer. I, with the fields of this structure create an array of integers in C language I would like to pass this array of integers c, in Java using JNI.
How can I make this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 24 2011
Added on Dec 23 2010
6 comments
2,662 views