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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.