Removed unused exception jobject from the registerNativeHook() method.