Messing around with JNI/JNA.