CHAPTER 8

image

Java Native Interface

In this chapter, you will learn

  • What the Java Native Interface (JNI) is
  • How to write Java programs that uses native methods
  • How to write C++ programs to implement native methods
  • How to create a shared library on Windows and Linux for the native implementation of methods used in Java
  • The data type mapping between Java types and JNI types
  • How to work with Java strings and arrays in native code
  • How to create Java objects, and access fields and methods of those objects in native code
  • Exception handling in native code
  • How to embed the JVM in native code
  • How to handle thread synchronization using the JNI in native code ...

Get Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.