/jni_examples

A collection of Java Native Interface examples using Eclipse and Visual Studio.

Primary LanguageC++OtherNOASSERTION

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.