The goal of this POC is to be able to make a Java Web Start (JNLP) application that also uses libraries written in C/C++. In order to achieve that, the Java Native Interface (JNI) will be used. The POC aims to also package the C/C++ libraries inside the resulting JAR.
This tutorial will be the base for the JNI code. For now, the compiled C code will be kept as a resource.
Building and dependencies is handled by Maven. To generate the Jar run:
mvn clean compile assembly:single
libHelloImpl.jnilib binary was compiled on macOS Sierra.