On Aug 22, 3:06 pm, Robert McIntyre <[email protected]> wrote:
> I feel like a lot of people have trouble with this (I certainly do!)
> so I made this tutorial with working examples to follow.
Thanks
$ /usr/local/src/jdk1.6.0_18/bin/java -cp .:clojure.jar -
Dclojure.compile.path=. clojure.main
Clojure 1.2.0
user=> (compile 'clojure.examples.hello)
clojure.examples.hello
$ /usr/local/src/jdk1.6.0_18/bin/java -cp clojure.jar
clojure.examples.hello Fred
Hello Fred!
Is there are reason not to simplify further?
$ cat hello.clj
(ns hello
(:gen-class))
(defn -main
[greetee]
(println (str "Hello " greetee "!")))
$ /usr/local/src/jdk1.6.0_18/bin/java -cp .:clojure.jar -
Dclojure.compile.path=. clojure.main
Clojure 1.2.0
user=> (compile 'hello)
hello
$ /usr/local/src/jdk1.6.0_18/bin/java -cp clojure.jar hello John
Hello John!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en