caesium icon indicating copy to clipboard operation
caesium copied to clipboard

Embedding libsodium in jar file with caesium

Open talios opened this issue 7 years ago • 2 comments

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 )

talios avatar Jun 29 '17 03:06 talios

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.

lvh avatar Jul 05 '17 13:07 lvh

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.

dspearson avatar Jan 07 '21 15:01 dspearson