fixed RRegister jni method in windows