Skip to content
POC of a Java Web Start app that also uses the Java Native Interface to use packaged C libraries.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main
.gitignore
README.md
TemperatureConverter.jnlp
pom.xml

README.md

jni-jnlp-poc

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

The included libHelloImpl.jnilib binary was compiled on macOS Sierra.

You can’t perform that action at this time.