If you are interested, I have been working on a template project to
let me create a REPL that comes preloaded with whatever JARs and AOT-
compiled Clojure I want.  Be warned - it's Maven!  :-)  and the REPL
script is a BAT file for Windows - I haven't done anything with Unix
yet.  Wouldn't be hard to add though.

  
http://code.google.com/p/sandflea/source/browse/#svn/clojure-remix/trunk/clojure-remix-pom

And there is a sample project at:

  
http://code.google.com/p/sandflea/source/browse/clojure-remix/trunk/clojure-remix-sample/pom.xml

Managing JARs by hand seems easy, until you give the code to someone
else, or revisit it 10 years later when you've forgotten most of what
you were doing.

On May 23, 10:22 pm, Imran <im...@rafique.org> wrote:
> Ok, so as long as I manage jar versions appropriately, there's not
> much to be gained by selectively including jars on the CLASSPATH. Just
> put them all in there.
>
> Thanks Stuart.
>
> On May 23, 6:54 pm, Stuart Campbell <stu...@harto.org> wrote:
>
>
>
>
>
> > > JVM newbie question here. Aside from the clojure & clojure-contrib jars, 
> > > is
> > > there any downside to automatically setting up my CLASSPATH so that all 
> > > jars
> > > on my box are available - even if I might only be using 1 or 2 for the 
> > > code
> > > I'm working on at the moment?
>
> > The problem with such a scheme is inclusion of multiple versions of the same
> > library. This can result in obscure 'unresolved compilation' errors cropping
> > up when you try to use a method or class that doesn't exist in whichever
> > library the JVM happened to choose.
>
> > Does the jvm do any expensive initialisation for each jar? Or does it not
>
> > > make a difference until I explicitly import a jar in my clojure code?
>
> > I don't think it would make a difference. Static initialisation etc. doesn't
> > happen until a class is explicitly loaded.
>
> > Regards,
> > Stuart
>
> > --
> > 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 
> > athttp://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 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 
> athttp://groups.google.com/group/clojure?hl=en- Hide quoted text -
>
> - Show quoted text -

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