Below is my scenario
I have to develop a java code that needs to communicate with C Library ( DNP3 Library ) , i assume below are the steps
- Understand the C code
- Write a JNI wrapper for C code
- Wite a Java program to call the JNI which in turn calls the C code
I have never worked on JNI , going through few examples i found they write the java code first and generate a .h file (JNI ) and then a corresponding C file.
Can you please reference me to any article that goes the other way round like C library (.c) -> JNI -> Java code ?
Thanks in advance Rakesh