Leiningen: create an executable jar to run without Java – jar
•
Java
I tried to understand how to package a command - line application written in clojure for distribution I don't want users to have to use Java - jar myproject Jar arg1 arg2 to run the program PHP has some files called "phar", which are basically executable zip files, so they contain a shebang. PHP file that tells the POSIX system how to extract and run them
I've seen other clojure apps allow jar files to be set to CHMOD X and then executed directly How did they do this? Uberjar seems to be just making a jar that needs a Java - jar prefix
Solution
You can do this using lein bin
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码