I'm a little weirded out by writing binary code out of a jar to a temporary directory; on the other hand, this does improve distribution, doesn't it? I imagine all sorts of potential problems, though: 1) multiple copies of the program overwrite the same file (if a predictable name is used), and also have a security race, or alternately 2) litering the /tmp/ directory with bunches of libs. And also 3) this will hurt startup performance, which is important in my case.
This means that I would have to take on building this for all of the binary platforms, which is a chore; and (again) on the other hand, it's a chore that would allow other apps to never have to have this problem. (Avi is a console-based editor, the JNI portion is an ncurses wrapper.) On Mon, Mar 16, 2015 at 12:08 PM, Philippe Guillebert < philippe.guilleb...@gmail.com> wrote: > Hi > > I'm not sure what "Avi" is in this context, maybe what you're looking for > is a way to package and run native JNI code from an uberjar ? I recently > released https://github.com/pguillebert/indigenous that may help in this > purpose. You still need to find a maven artifact providing the native > library (for several platforms if you need that). Let me know if indigenous > can help ;) > > Hope that helps > > Philippe > > > > > > > > > On Fri, Mar 13, 2015 at 4:02 PM, Jason Felice <jason.m.fel...@gmail.com> > wrote: > >> I would like to break the JNI part out of Avi and make it a dependency >> and - hopefully - use it via maven and leiningen like any other dependency. >> >> I've come across a bunch of ways of doing this, but they all seem >> somewhat ... desperate. Does anyone have an example of something that >> works - multi-platform and all? >> >> Thanks >> -Jason >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clojure@googlegroups.com >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Philippe > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.