Passing data types from Java to C (or vice versa) using JNI
If you’re going to be doing this with a lot of objects, something like Swig would be best. You could use jobject type to pass around custom objects. The syntax isn’t nice, perhaps there is a better way to write this. Example Employee object: public class Employee { private int age; public Employee(int age) { … Read more