The Java Native Interface: Programmer's Guide and Specification (The Java Series) by Sheng Liang
This book helps Java developers overcome one of the greatest programming challenges today -- how to achieve and maintain smooth integration of Java technology with the existing infrastructure. Java Native Interface (JNI) technology is the programming interface that enables Java technology programmers to leverage legacy code written in other languages, such as C and C++. (Java technology and C/C++ are projected to coexist for many years to come.) Based on the extremely popular JNI tutorial on Sun's website, Java Native Interface serves as a tutorial, programming guide, and reference for effectively using JNI technology. In addition, it offers useful tips on wags to avoid common pitfalls, and includes the complete official specification JNI.