12-03-2020, 04:39 PM
Hi,
Doing a binding is more a tedious work than a challenging one. It requires repetitive work done by hand that is error-prone, because you have to map every function and data structure, keeping names, parameter ordering and type. However you need a moderate experience in both languages, as you're interfacing between them. Definitely not a beginner task.
You can figure out the mechanism by examining a working example -in this case TilengineJNI.c and Tilengine.java- and learning about JNI, for example here (but there are many tutorials out there):
https://www.baeldung.com/jni
Doing a binding is more a tedious work than a challenging one. It requires repetitive work done by hand that is error-prone, because you have to map every function and data structure, keeping names, parameter ordering and type. However you need a moderate experience in both languages, as you're interfacing between them. Definitely not a beginner task.
You can figure out the mechanism by examining a working example -in this case TilengineJNI.c and Tilengine.java- and learning about JNI, for example here (but there are many tutorials out there):
https://www.baeldung.com/jni