seancorfield / lein-fregec

A Leiningen plugin to compile Frege (http://www.frege-lang.org) code.
https://clojars.org/lein-fregec
Eclipse Public License 1.0
20 stars 1 forks source link

Document uberjar works #4

Closed seancorfield closed 9 years ago

seancorfield commented 10 years ago

And fix the :main :aot warning?

seancorfield commented 10 years ago

Need project.clj to have an explicit dependency on the Frege runtime so it is pulled into the JAR file. Then java -cp target/the-standalone.jar MainModule will work.

If you have Clojure calling Frege, you also need Clojure as a dependency (duh!) and then you can just say java -jar target/the-standalone.jar and the Clojure :main namespace will be run.