C
cold80
Today I've tried my first application with JNI. I made a simple Java
class with a native method, I generated the C stub with javah and
finally I wrote the implementation of the C function. Everythink works
just fine. In the implementation C file I had of course to include the
file jni.h. What I can't understand is where the JNI code is
written....I mean, where is the code that I can use to convert types
(like GetStringLength for example)? I could not understand very well
the content of the file jni.h but it doesn't seem to contain the real
code, just typedefs and structure definitions. I didn't link any
library into my VS2005 project, so I can't understand where the code
for the JNI functions is located.
Thank you in advance for your help
Cold
class with a native method, I generated the C stub with javah and
finally I wrote the implementation of the C function. Everythink works
just fine. In the implementation C file I had of course to include the
file jni.h. What I can't understand is where the JNI code is
written....I mean, where is the code that I can use to convert types
(like GetStringLength for example)? I could not understand very well
the content of the file jni.h but it doesn't seem to contain the real
code, just typedefs and structure definitions. I didn't link any
library into my VS2005 project, so I can't understand where the code
for the JNI functions is located.
Thank you in advance for your help
Cold