Hacker News new | past | comments | ask | show | jobs | submit login

Native libraries are typically packaged inside a jar so that everything works over the existing build and dependency management systems.

For example, each these jars named "native-$os-$arch.jar" contain a .dll/.so/.dylib: https://repo1.maven.org/maven2/com/aayushatharva/brotli4j/

JNA will extract the appropriate native library (using os.name and os.arch system properties), save the library to a temp file, then load it.




    > JNA will extract the appropriate native library ..., save the library to a temp file, then load it.
JNA does this?

FYI: JNA = Java Native Access project: https://github.com/java-native-access/jna



Examples of JARs, that transport such libraries: snappy, sqlite...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: