[leiningen] Re: Help packaging jni shared-objects in uberjar
- From: Phil Hagelberg <phil@xxxxxxxxxx>
- To: leiningen@xxxxxxxxxxxxx
- Date: Wed, 27 Sep 2017 09:05:42 -0700
Shlomi Vaknin <shlomivaknin@xxxxxxxxx> writes:
It seems to me that there isn't a clear step-by-step guide on how to
get something like this done, I might just revert to using maven for
the java/jni/so portion and lein for the clojure one.
This is definitely pretty confusing; basically if you want it to work
from an uberjar you will need to create an uberjar which knows how to
extract the native dependencies into a known location on the filesystem,
and (I'm a little fuzzy on the details) it may be that you have to
launch the JVM with arguments pointing to this location on the
filesystem, which would mean you can't *just* use an uberjar, you would
need a bash script to go with it and set JVM_OPTS.
If you can have this stuff handled by lein or maven and avoid the
uberjar route, I would strongly recommend it.
Description: PGP signature
Other related posts: