the JNR-FFI library is really useful for integrating with C libraries
just write an interface that matches the signatures of the C calls, and it will write the glue code for you
was integrating with libsodium this weekend, was painless.
libsodium