Before maven, I used the repl and jar. My root dir had src\myapp \*.clj, ... and "classes". 1-In directory classes: "jar xf path\to\clojure.jar", same for any other deps. 2-In root, "java -cp src;classes clojure.main"; -> "(compile 'myapp.main)" 3-Back to classes: "jar cfe myapp.jar myapp.main *.*" 4-To run: java -jar myapp.jar
That's probably not dead simple but I could live with it 'til the time came to learn a build tool. On Apr 27, 10:45 am, cej38 <junkerme...@gmail.com> wrote: > Hi, > I would like the simplest method to compile a few lines of clojure > code into a jar file that I can distribute to some fellow scientists > that don't know much (if anything) about java or clojure. Since I am > not creating a huge product that I will be updating often, maven and > Lenningen seem like overkill. The compiled jar file should contain > the relevant clojure and clojure.contrib stuff within it, so that the > other users don't have to worry about downloading clojure/contrib. > > Also, I would rather not unpack jar files from libraries that I used, > if possible. > > Clojure's compile function is tantalizing, but then everyone would > need to have the same versions of the libraries that I used, not just > clojure and contrib. > > Thanks. > > Chad -- 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