jus*_*nhj 11
您只需要用户拥有JRE(v1.5或更高版本)
Clojure程序可以编译成jar文件.你不必使用leiningen这样的东西,但它更容易.
在Clojure.org网站上查看此页面,了解如何编译和运行程序.
您可以从REPL编译为jar文件:
(compile 'clojure.examples.hello)
Run Code Online (Sandbox Code Playgroud)
以下是运行编译jar的方法:
java -cp ./classes:clojure.jar clojure.examples.instance asdf
Run Code Online (Sandbox Code Playgroud)
你只需要一个JRE.
https://github.com/technomancy/leiningen/blob/master/TUTORIAL.md详细解释,但我相信你只想要一个"Uberjar",其中包含分发应用程序所需的所有依赖项.