example is working with the new jni and without jni-reflection