merge for jni-tips part

accomplish 50%