JNI support

Add jni support