move code to jni directory.