On 30 June 2010 18:45, Greg <g...@kinostudios.com> wrote:
> It seems like a lot of n00b (and non-n00b) related problems have to do with 
> the location of clojure.jar and clojure-contrib.jar. People generally don't 
> like having to keep track of all the clojure.jars, and it would be nice if it 
> was easy to switch versions for scripts like clj and such.
>
> May I propose as a possible remedy CLOJURE_HOME. CLOJURE_HOME is the absolute 
> path of a directory containing clojure.jar and possibly clojure-contrib.jar. 
> Scripts should check if it's defined and use it instead of hard-coded paths, 
> as an example, here's my clj script (in newLISP):
>
> http://www.taoeffect.com/other/clj.lsp.html
>
> It's really simple, at least in newLISP, to do this:
>
>        (constant 'CLOJURE_HOME (or (env "CLOJURE_HOME") (string (env "HOME") 
> "/.clojure"))
>
> Input welcome!

On the face of it this seems like a good idea, however it doesn't
really fit with the models used by tools such as leiningen, mvn or the
JVM.  At best a CLOJURE_HOME initiative can only expect to work within
its own world of clj scripts etc.

Though having a clj script adopt CLOJURE_HOME is probably a good idea,
i.e. the script is then reusable across multiple installs of clojure
it's not really a "n00b" friendly solution.  Like others I don't think
we can gloss over handling the JVMs classpath; it's part and parcel of
Clojure and the JVM.  Trying to dust it under the carpet will only
confuse people more.

This isn't to say that the Clojure community shouldn't work hard to
make this stuff easier.  Personally I think that leiningen is the
easiest model for beginners, and it scales nicely up to larger
projects too.  This is why I'd love to see "lein swank" styled support
for each of the IDE's/Editors.

R.

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