There are two different ways to access native libraries in Java: use the Java Native Interface (JNI), or use the Java Native Access Library (JNA).