Fork me on GitHub

This is in reference to I suggest updating the documentation at with some example code of the actual main class you’d be packaging up. The path I followed was about the first half of this guide:, which got me a running program. Then I wanted to package my program as a jar, which lead me to this guide: :gen-class is mentioned in the first guide, but it’s well past the point where you have a running program, and :gen-class isn’t mentioned at all in the second page, so that’s how I got stuck (I don’t think the documentation in the first guide would have helped me regardless). I’ve been doing clojure off and on for a while, so I suppose I should have known to use :gen-class, but I’ve never fully understood what it was for.


Thank you! That issue perfectly sums up the problem and a good solution.