Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 605 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 605 Bytes

JNI Examples

A collection of examples of how to implement the Java Native Interface with a C++ written Dynamic Link Library.

Example01

  • Call a native method to return a Java String from the DLL.

Example02

  • Lets the DLL call a Java method and passes an argument.

Example03

  • Make the DLL return a Java class instance with some information.

Example04

  • The DLL returns some primitives we can use in a Java application.

Example05

  • Using JNI to bridge a Java application to a non-JNI DLL.

Example06

  • Using Java classes to keep track of native class instances using a pointer.