JNI for linux platform