We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"I wish there was more "best practice" out there about having a shim for -main and dynamically loading the rest"
-main
The text was updated successfully, but these errors were encountered:
launching a clojure program, refs clojure#140
a54b0bf
Not sure how idiomatic it is (or if I've misunderstood the question), but here's what we use:
package our.cool_app; import clojure.java.api.Clojure; import clojure.lang.IFn; public class Main { public static void main(String[] args) { try { IFn require = Clojure.var("clojure.core", "require"); require.invoke(Clojure.read("our.cool_app.core")); Clojure.var("our.cool_app.core", "start!").invoke(); } catch (Throwable e) { System.out.println(e.getMessage()); } } }
Sorry, something went wrong.
No branches or pull requests
"I wish there was more "best practice" out there about having a shim for
-main
and dynamically loading the rest"The text was updated successfully, but these errors were encountered: