Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding libsodium in jar file with caesium #23

Open
talios opened this issue Jun 29, 2017 · 2 comments
Open

Embedding libsodium in jar file with caesium #23

talios opened this issue Jun 29, 2017 · 2 comments

Comments

@talios
Copy link

talios commented Jun 29, 2017

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 )

@lvh
Copy link
Owner

lvh commented Jul 5, 2017

I haven't looked further into doing it. jnr-ffi doesn't really document how. See jnr/jnr-ffi#93 for more details.

@dspearson
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants