Re: Java app invoking Clojure dynamically

2010-09-01 Thread Sean Corfield
On Wed, Sep 1, 2010 at 8:56 PM, Wilson MacGyver wrote: > http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java Awesome! Thank you! I have this working. Just need to tidy up classpath issues to allow the .clj scripts to be wherever I want. And then I need t

Re: Java app invoking Clojure dynamically

2010-09-01 Thread Wilson MacGyver
if you must dynamic load it. you can do it from a file and use the clojure runtime import clojure.lang.RT; import clojure.lang.Var; full code example at http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java On Wed, Sep 1, 2010 at 10:51 PM, Sean Corfield

Java app invoking Clojure dynamically

2010-09-01 Thread Sean Corfield
Let's suppose I have a Java application (or some other language running on the JVM). I want to write some logic in Clojure and call it from Java. I know that I can compile Clojure code to .class files. I've used lein to create a JAR that I've deployed as part of a Java app and I've successfully ca