The JNI supports an invocation interface that allows the application to embed a Java virtual
machine implantation into native applications. Native applications can link with a native library
that implements the Java virtual machine, and then use the invocation interface to execute software
components written in the Java programming language. For example, a Web browser written in C
can execute downloaded applets in an embedded Java virtual machine implementation.
Sometimes, however, it might be necessary for a Java application to communicate with native code that
resides in the same process. This is when the JNI ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.