this is what happens when you get fed up with FFI in Java