add exec function in jni