Login  Register

Re: Building JARs with native libs inside

Posted by farrellf on Sep 18, 2021; 11:22pm
URL: https://forum.jogamp.org/Building-JARs-with-native-libs-inside-tp4041279p4041290.html

I'm not sure about how to automate the Jar build process, but jSerialComm (a cross-platform serial port library) also packs their natives into a fat jar, and it looks like this is how they manage unpacking the jar at runtime:

https://github.com/Fazecast/jSerialComm/blob/master/src/main/java/com/fazecast/jSerialComm/SerialPort.java#L52