I am trying to use SWIG to generate my JNI. I already have JNI code that is working, but it is hand written and it is getting more and more complicated and difficult to maintain.
Some of my functions in C are called from Java, and then they call some methods in Java (probably it is not a good idea, but it is working for now)...
I am wondering if it is possible for SWIG to generate that kind of JNI code?