E
Elena
Hi,
I've developed a native application which calls Java by means of JNI
and everything is going fine. What I'd like to do now is collecting
debug logs from the Java side together with logs from the main native
application. That is, I have to call C from Java.
It doesn't seem that Java allows simple callbacks from Java to C. The
lame solution I'm going to employ if I fail in finding a simpler
solution is to build a JNI DLL which stores C callbacks in some global
variable and then gets loaded from Java, therefore being able to call
those C callbacks.
Any suggestion?
Thanks.
I've developed a native application which calls Java by means of JNI
and everything is going fine. What I'd like to do now is collecting
debug logs from the Java side together with logs from the main native
application. That is, I have to call C from Java.
It doesn't seem that Java allows simple callbacks from Java to C. The
lame solution I'm going to employ if I fail in finding a simpler
solution is to build a JNI DLL which stores C callbacks in some global
variable and then gets loaded from Java, therefore being able to call
those C callbacks.
Any suggestion?
Thanks.