basic java to jni framework