There has been a recent discussion of making JNI easier to use:
We need some sort of JNI support plugin that will do things such as
auto-generate C/C++ stub files for native methods defined in Java code and make
it easier to integrate the whole thing as a project (with cross-checking that
native methods exist at compile-time if possible).
Try "cnd" module. Closing as fixed. Feel free to reopen in a case "cnd" support doesn't provide the stuff you call for.
I took a quick look at the cnd project page and it doesn't look like it does anything I am asking for (yet). Reopening
cnd doesn't support this yet, but try
*** This bug has been marked as a duplicate of bug 133692 ***