I think it is unacceptable to provide broken, unpolished and not
working scripts.
I'm definitely respect the maintainers, I'm just annoyed because I
spent a couple of hours trying to make it works.
Thanks Alex, I owe you a huge mug of beer :)

On Dec 9, 6:39 am, Alex Osborne <a...@meshy.org> wrote:
> HB <hubaghd...@gmail.com> writes:
> > I checked clj script under the script directory:
>
> > #!/bin/sh
>
> > CLASSPATH=src/clj:test:test-classes:classes/:script/
> > jline-0.9.94.jar:../clojure-contrib/target/clojure-contrib-1.2.0-
> > SNAPSHOT.jar
>
> > if [ -z "$1" ]; then
> >    exec java -server jline.ConsoleRunner clojure.main
> > else
> >    SCRIPT=$(dirname $1)
> >    export CLASSPATH=$SCRIPT/*:$SCRIPT:$CLASSPATH
> >    exec java -Xmx3G -server clojure.main "$1" "$@"
> > fi
>
> That script looks simply broken.  In the case where no arguments are
> supplied the classpath is not set at all (it'd need an "export
> CLASSPATH").
>
> For those not used to the JVM, the CLASSPATH is where Java (and Clojure)
> search for classes and clj files.  On unix it's a colon-separated list
> of directories and jar files.
>
> I suggest you completely ignore that script subdirectory, it looks to me
> like it contains personal debugging and benchmark scripts that have been
> included in the distribution by accident.
>
> To run a Clojure REPL, just type this:
>
>     java -jar clojure.jar
>
> You can see more options:
>
>     java -jar clojure.jar -h
>
> Most Clojure developers that I know normally use a build tool and/or IDE
> rather than working directly from the distribution though.
>
> Personally I use Leiningen:
>
> http://github.com/technomancy/leiningenhttp://github.com/technomancy/leiningen/blob/master/TUTORIAL.md
>
> If you come from a Java background you might be more used to a
> particular IDE or Maven.  There's a nice list here:
>
> http://www.assembla.com/wiki/show/clojure/Getting_Started

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

Reply via email to