clojure.main on a clj file does not show up any println

2014-12-08 Thread Ganesh Krishnamoorthy
I have been trying all my bit on to get my hello world working; Any help is 
much appreciated...

am trying to run it by 
java -cp clojure-1.6.0.jar clojure.main hey.clj
I just get an empty line.
Below is my file:

(defn -main
  []
  (println Hello World!)
  (println (- 1 1)))

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure.main on a clj file does not show up any println

2014-12-08 Thread Ganesh Krishnamoorthy
That helped, Thanks! The Clojure CLR seems to be working a bit different. 
It insists on a ns, creates an exe by ns and its readily run-able.
I gave Lein a shot too, but apparently its looking for some dependencies to 
be downloaded, I am behind a proxy so that dint work too...
Is there a dependencies distrib i can download and place it?

On Monday, December 8, 2014 7:32:16 PM UTC+5:30, Ganesh Krishnamoorthy 
wrote:

 I have been trying all my bit on to get my hello world working; Any help 
 is much appreciated...

 am trying to run it by 
 java -cp clojure-1.6.0.jar clojure.main hey.clj
 I just get an empty line.
 Below is my file:

 (defn -main
   []
   (println Hello World!)
   (println (- 1 1)))



-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.