example of passing String Array from java to C using JNI

hi alli searched net for passing string array from java to C but i dont get anything relevent i have class stu{ int rollnostring nameString [] sub} i want to pass all as String array from java to C and access it C side
[288 byte] By [dollyna] at [2007-11-26 16:03:32]
# 1

1. Code it as though it were being passed to another method written in java.

2. Redefine the method implementation to say "native".

3. Run jnih to generate a C ".h" file. You will see that the string array

is passed into C as a jobject, which can be cast to a JNI array.

4. Write the C code to implement the method and meet the interface

in the generated .h file.

bschauwejavaa at 2007-7-8 22:25:23 > top of Java-index,Java HotSpot Virtual Machine,Specifications...