removed jni, all done in scala now