first attempt at minimal-jni