I've gotten JNI to work pretty easily by using the CName annotation and matching the CName of the method with the name Java expects. It would be nice if, when my code in in the same project, there was some annotation like JNI(KClass) that would recognize the name Java expects for a JNI method and set the String for me.