Re:How to setup Clojure from scratch
by bphogan on Tuesday July 13, 2010 @01:51PM
(#1512165)
Ok, I'm totally a noob with Clojure, but I thought all I had to do was java -jar ~/clojure.jar and I got a REPL. Did something change recently? This seems like an awful lot more work than it should be.
[ Parent
| on HN ]
java -jar ~/clojure.jar will give you a REPL. It will be a less convenient REPL though. In particular:
* No history support. Try to use the arrow to go back to the previous instruction and you'll be greeted by ^[[A.
* No tab completion.
* No exit function.
* No startup file with your customizations.
* No clojure.contrib automatically in your classhpath.
* No simple way to automatically place a list of jars for a given project in the classpath by simply specifying them in a file.
java -jar ~/clojure.jar will do. But this, I believe, is nicer.
Re:How to setup Clojure from scratch
by briancarper on Tuesday July 13, 2010 @07:04PM
(#1513036)
You can always exit via (System/exit 0), 0 being the return code.
`java -cp clojure.jar clojure.main` is the preferred method of starting Clojure rather than using -jar, I think.