What is the easiest way to make a clojure app into an executable like http://rawr.rubyforge.org/ does for ruby? (exe and app files too)
+8
A:
Use leiningen and build an uberjar(standalone jar that contains all dependencies) from the project.
As Alex Ott mentions in the comment to my answer, another may to build your app is to use Maven + Clojure plugin for maven. Afterward you may use a tool such as IzPack to generate an installer or an executable wrapper for your jar artifact. You may use IzPack with leiningen as well of course - it doesn't care about the build system at all - only about the resulting files :-)
After you have the uberjar there are many option to wrap it in a native executable launcher for windows - izpack2exe, jsmooth, jar2exe, executor, etc...
Bozhidar Batsov
2010-05-26 17:17:40
I use maven with assembly plugin to build big jar with all content. And I also use maven + izpack-plugin to build installers for my applications
Alex Ott
2010-05-26 18:20:54
I use IzPack myself, but forgot to mention it. Thanks for the great comment, I'll extend my answer.
Bozhidar Batsov
2010-05-26 18:26:33
Clojuresque (the Clojure plugin for gradle) also provides an uberjar task, which builds a standalone jar for an application.
kotarak
2010-05-27 08:27:37
I don't want an installer. I just want to convert the jar to an app and exe.
VectorBEAR
2010-05-28 00:54:56
I've updated my answer.
Bozhidar Batsov
2010-05-28 06:40:35
lein uberjar, couldn't be more simple, best option IMHO
Humberto Pinheiro
2010-05-30 00:08:02