This repository contains a set of simple projects to experiment with Java interacting with native code.
A blog post describing this project can be found on my https://lofthouse.dev site.
This repository uses the following projects:
- simple-library - A simple C library installing both a static and a dynamic variant.
- simple-c-app - A simple C app linked to the
simple-library, the build can be configured to use either the static or the dynamic variant. - simple-jni - A simple Java project with two defined native methods.
- jni-library - Minimal dynamic library, implementing the generated header from
simple-jnito call the library fromsimple-library. - simple-foreign - A simple Java project calling
simple-librarydirectly using the new foreign functions APIs.