That's how I managed to create jar: I have folders c:\user\apps and c:\user\apps\classes (which can be empty, but must exist) (beside clojure.jar and other jars) in classpath. I have a file: c:\user\apps\my\hello.clj with this contents:
(ns my.hello (:gen-class)) (defn -main [] (println "Hello World!")) I launch repl from the dir c:\user\apps and enter this command: (compile 'my.hello) and I have my compiled classes in c:\user\apps\classes\my I unpack clojure.jar to c:\user\classes and delete a META-INF folder. Then in this folder (c:\user\classes) I create manifest.txt: Main-Class: my.hello which ends with a newline. after that I execute this command in the same folder (c:\user \classes): jar cmf manifest.txt hello.jar clojure my And there I have an executable jar. so when I run java -jar hello.jar It prints out "Hello, world!". That's it. Well, I hope that helps... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---