O'Reilly logo

Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required