Click here to Skip to main content
15,566,615 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a int array like int[][] arrays = { array1, array2, array3, array4, array5 };where array1=30,40,20,40 ,array2=40,20,30,30 and I am trying to send this array to C with using JNI. I could not find any clear solution for this. I have tried to take this int as a intarray but no success.

Is there a way to do this?
Posted

1 solution

I found this fine Java Programming Tutorial for JNI with example for int array.

Very important is to release all memory carefully or the jni gets into trouble without any clear errors.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900