Hi Tim, The next revision of the book will include Section 3.3, "Calling Clojure from Java" which shows how to create a standalone Java application. The sample code is already checked in to github [1], and the relevant file is examples/tasklist.clj.
Also, the lancet application [2] can now compile itself into a standalone JAR. The technique used there is to unjar clojure and contrib, drop your own code onto it, and rejar. There is no "one size fits all" solution for packaging and deployment-- this is a fact if life that Clojure inherits from the Java world. Cheers, Stuart hAlloway [1] http://github.com/stuarthalloway/programming-clojure/tree/master [2] http://github.com/stuarthalloway/lancet/tree/master > I'm struggling to understand exactly what form(s) a Clojure program > can take. In particular, the empty section "The REPL and main entry > points" on the clojure.org web site doesn't help. > > Obviously, interacting manually with the REPL is nice for learning the > language, but this becomes tedious as the size of the source > increases. So the question is: what are the different ways that one > can run or package up a Clojure/Java program, so that it is invoked by > running a shell (or DOS cmd) script? > > I have got the book by Stuart Holloway, but that does not address this > issue (in its present revision). > > Are there any tools to perform this "packaging up"? > > I have been trying to use the clojure-dev Eclipse plugin but that does > not seem to be working yet. I work on Windows (using Eclipse) and want > to avoid using Emacs, which I find pretty vile (largely because there > does not seem to be an explanation of it that works). > > I apologize if I'm being really dense! I really like the "smell" of > this language and want to use it for real applications. > > Regards, Tim > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---