concept JNI in category oculus rift

appears as: JNI
Oculus Rift in Action

This is an excerpt from Manning's book Oculus Rift in Action.

Technically, you could use the Rift in Java without the SDK, by reproducing the SDK functions in native Java.  However, this would present an enormous maintenance burden, and would not let you escape from the need to use JNI or JNA.  Using the Rift requires reading the head tracker hardware using the HID (a hardware specification for interacting with Human Interface Devices, such as mice, keyboards and, in this case, head tracking hardware) via platform specific APIs.  Since calling C code ends up being on the critical path, it’s simpler to use the SDK than the try to re-implement things like sensor fusion.

JNI tends to be faster, but requires you to write both your binding code with a Java portion as well as a C portion that wraps whatever native code you want to run.  JNA isn’t as fast, but is easier to work with, requiring only that you declare functions in Java with method signatures that match those in the library you wish to use.