Re: Including java classes using lein

2011-11-08 Thread Joost
On Nov 8, 7:33 pm, megabite wrote: > I'm trying to use Math/sqrt using clojure 1.3.0 and lein but for some > reason I can't get it to work. > > What do I need to put in the project.clj file and what needs to go > into the (ns ...) statement in the core.clj file in order to get this > work? It shou

Re: Including java classes using lein

2011-11-08 Thread Mark Rathwell
J2SE is available by default (since it is included with the JVM). I believe java.lang.* is accessible without importing, and anything else needs to be imported before using, can't remember for sure though. So, (Math/sqrt 25) should just work. On Tue, Nov 8, 2011 at 1:33 PM, megabite wrote: > I

Including java classes using lein

2011-11-08 Thread megabite
I'm trying to use Math/sqrt using clojure 1.3.0 and lein but for some reason I can't get it to work. What do I need to put in the project.clj file and what needs to go into the (ns ...) statement in the core.clj file in order to get this work? It should be fairly straightforward but there don't se