support jni & thread
add samba example