RE: Using libraries without Lein

2017-11-28 Thread Sean Corfield
November 28, 2017 2:49:53 PM To: clojure@googlegroups.com Subject: Re: Using libraries without Lein Thanks Alex ... just what I was looking for - putting the jars in classpath that is! I'll try out the new tool a little later though. Regards, Kashyap On Tue, Nov 28, 2017 at

Re: Using libraries without Lein

2017-11-28 Thread C K Kashyap
Thanks Alex ... just what I was looking for - putting the jars in classpath that is! I'll try out the new tool a little later though. Regards, Kashyap On Tue, Nov 28, 2017 at 2:27 PM, Alex Miller wrote: > Sure. You need a jar for Clojure and a jar for clj-http and then just run > Java with tho

Re: Using libraries without Lein

2017-11-28 Thread Alex Miller
Sure. You need a jar for Clojure and a jar for clj-http and then just run Java with those in a classpath: java -cp clojure.jar:clj-http.jar my-program There is a lighter weight tool that we've added in Clojure 1.9 (also works with 1.8) that can help in assembling classpaths and serving as a run

Using libraries without Lein

2017-11-28 Thread Kashyap CK
Hi, I am trying to use clj-http in my clojure program. I am trying to do the whole thing in a "light-weight" manner - without creating a project and all or using lein. Is that possible? or do I need to use Lein? Regards, Kashyap -- You received this message because you are subscribed to the Go

Re: using libraries

2008-10-15 Thread Paul Drummond
It's funny how things suddenly click. While out for a run (the only time I seem to be able find clarity it seems) I started thinking that it would be nice to have macros for "require" and "use" so that you don't have to worry about quoting then I realized that's exactly what ns is for! I *should

Re: using libraries

2008-10-15 Thread Paul Drummond
On Oct 15, 2:21 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > Here's the portion of (doc require) where it's mentioned: > > [...] >    Libspecs > >    A libspec is a lib name or a vector containing a lib name followed by >    options expressed as sequential keywords and arguments. > >    R

Re: using libraries

2008-10-15 Thread Stephen C. Gilardi
On Oct 15, 2008, at 3:22 AM, Paul Drummond wrote: > Hmmm. Now I am getting this: > > (require 'clojure.contrib.zip-filter :as 'zf) > java.lang.ClassCastException: java.lang.Boolean cannot be cast to > clojure.lang.Symbol (NO_SOURCE_FILE:0) > > Any ideas? I've enclosed a patch to boot.clj that

Re: using libraries

2008-10-15 Thread Stephen C. Gilardi
On Oct 15, 2008, at 5:03 AM, Paul Drummond wrote: > > On Oct 15, 9:34 am, mb <[EMAIL PROTECTED]> wrote: >> You might want to try (require ['clojure.contrib.zip-filter :as >> 'zf]). >> AFAIR, you have to use [] when you want to specify :as. > > Ah, that's it! This isn't clear (or mentioned unl

Re: using libraries

2008-10-15 Thread Paul Drummond
On Oct 15, 9:34 am, mb <[EMAIL PROTECTED]> wrote: > You might want to try (require ['clojure.contrib.zip-filter :as 'zf]). > AFAIR, you have to use [] when you want to specify :as. Ah, that's it! This isn't clear (or mentioned unless I'm mistaken) in the docs. Thanks for your help. Paul. --~--

Re: using libraries

2008-10-15 Thread mb
Hi, On 15 Okt., 09:22, Paul Drummond <[EMAIL PROTECTED]> wrote: > Hmmm.  Now I am getting this: > > (require 'clojure.contrib.zip-filter :as 'zf) > java.lang.ClassCastException: java.lang.Boolean cannot be cast to > clojure.lang.Symbol (NO_SOURCE_FILE:0) > > Any ideas? You might want to try (req

Re: using libraries

2008-10-15 Thread Paul Drummond
Hmmm. Now I am getting this: (require 'clojure.contrib.zip-filter :as 'zf) java.lang.ClassCastException: java.lang.Boolean cannot be cast to clojure.lang.Symbol (NO_SOURCE_FILE:0) Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: using libraries

2008-10-14 Thread Paul Drummond
Of course. Hmmm. And I thought I knew this stuff! :) I think I was getting all confused because I was playing with ns and it doesn't require quoting (because it's a macro). It makes sense now - thanks. Regarding the use of require, am I right in thinking that ns is for library modules and req

Re: using libraries

2008-10-14 Thread Stephen C. Gilardi
On Oct 14, 2008, at 5:24 PM, Paul Drummond wrote: > I want to use the zip-filter library so at the REPL I tried this: > > (require 'clojure.contrib.zip-filter :as zf) > > which failed with: > > java.lang.Exception: Unable to resolve symbol: zf in this context The zf needs a quote as well as 'clo

using libraries

2008-10-14 Thread Paul Drummond
Hi all, After a short break from hacking in Clojure I am back and eager to try out all the new features but I am having trouble getting familiar with the new lib/namespace feature. I want to use the zip-filter library so at the REPL I tried this: (require 'clojure.contrib.zip-filter :as zf) wh