SHTns provides a JNI wrapper (courtesy of Julien Pierret) that allows basic usage from Java programs. See the shtns_jni folder.
shtns_jni