Revert "Revert "Pre JNI fucking""

This reverts commit 9e6f91c5279d685dd23be36f2d856f710cea2005.