Update JNI methods

Signed-off-by: Umair Khan <omerjerk@gmail.com>