caesium
caesium copied to clipboard
Embedding libsodium in jar file with caesium
Is it possible to embed libsodium in my jar file, along with caesium? I did an attempt and used a copy of Netty's NativeLoadLibrary, but it seems that caesium ( or more, JNR ) seems to insist on trying to load it from a system path somewhere.
( basically I just want our artifact to work, without other developers, or operations having to manually install sodium )
I haven't looked further into doing it. jnr-ffi doesn't really document how. See https://github.com/jnr/jnr-ffi/issues/93 for more details.
I investigated this briefly. It seems convoluted, and has JVM version specific methodology. It was attempted here (see this snippet), and the method used on later JVMs is given as an example here.
Given the plurality of operating systems to target, as well as architectures, not sure whether it would make sense.