Building cross-platform(Linux, Windows) java JNI application with maven

1.4k views Asked by At

I want to build Java application which uses JNI and code in C. Moreover I want make my app cross-platform by compiling native code and packaging native platform-dependent libraries within JAR file. I was following this guide but it is not working. I have no examples with maven-native-plugin nor NAR plugins. How is it possible to make java native methods cross-platform?

1

There are 1 answers

0
khmarbaise On

I would suggest to check the nar-maven-plugin for example.