It’s really, really not. What advantage does the JNI give you? From everything I’ve seen it’s causing you many unnecessary problems without having any benefits at all. I’m guessing that your having problems with obfuscation or are just mixing up your method signatures. You haven’t posted your code so right now there’s nothing we can do except tell you better ways of achieving what you’re trying to do.