The JNI is used to write native
methods to handle situations when an application cannot be written
entirely in the Java programming language such as when the standard Java class
not support the platform - dependent features or program library. It is
also used to modify an existing application, written in another programming
language, to be accessible to Java applications.
The JNI is for programmers who must take advantage of platform - specific
functionality outside of the Java Virtual Machine. Because of this, it is
recommended that only experienced programmers should attempt to write
native methods or use the Invocation API!