Yep.

   java -jar clojure.jar hello.clj

Should do the trick. Alternatively,

  java -cp clojure.jar clojure.main hello.clj

Will also work if you need to control the classpath more.

Dave

On Saturday, December 15, 2012, Mark Engelberg wrote:

> Let's say I have a file "hello.clj" that simply contains the line:
> (println "hello, world")
>
> What's the simplest way to run this clojure file?  I'm looking for
> something simpler than setting up a lein project.  Is there something along
> the lines of:
> java clojure.jar hello.clj
> that would actually work?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to 
> [email protected]<javascript:_e({}, 'cvml', 
> '[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] <javascript:_e({}, 'cvml',
> 'clojure%[email protected]');>
> 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 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

Reply via email to