In my project.clj I include two jar files:

:resource-paths ["resources/exterior_jars/forssj-optimization.jar" 
"resources/exterior_jars/umontreal-ssj-2.5.jar"]

In my main.clj I import some objects from these dependencies:

(ns myproject.main
  (:import [umontreal.iro.lecuyer.probdist ChiSquareDist])
  ...)

So I am able to use them in main.clj:

(println "Hello")
(println (. umontreal.iro.lecuyer.probdist.ChiSquareDist cdf 5 10 3.0))
(println "Bye")

It perfectly works if I do lein run.

However, if I do lein uberjar these dependencies are not included to the 
standalone jar file.

I know that there exist way to use local Maven repository, but I would like 
to avoid this way to simplify things for anybody who wants to download the 
source code and compile it quickly.

Could you advise, please, is it possible to somehow force Leiningen to 
include these two resources in the final standalone jar?

Thank you.

-- 
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.

Reply via email to