Try JNA. It provides an easier interface than JNI and you don't typically have to write adapter interfaces in C.