On Thu, May 28, 2009 at 9:26 AM, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
>
> Hi,
>
> Is there a difference between executing "java -cp clojure.jar
> clojure.lang.Repl" and "java -jar clojure.jar"? Unless it is, the
> later is easier and I think might ease http://clojure.org/dynamic.

The difference comes in when you want to add other libraries.

You can do:

java -cp clojure.jar:clojure-contrib.jar:some-other.jar clojure.lang.Repl

but not:

java -cp clojure-contrib.jar:some-other.jar -jar clojure.jar

If you advertise the "-jar" version, then people will get confused
when trying to use other jars, so it's better just to advertise "java
-cp clojure.jar clojure.lang.Repl".

-- 
Michael Wood <esiot...@gmail.com>

--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to