FYI, as of Clojure 1.6, you will use the clojure.java.api.Clojure class to obtain vars instead of RT.
http://clojure.github.io/clojure/javadoc/clojure/java/api/Clojure.html But I would actually recommend creating a Java interface that looks just how want it, and then implement that interface in Clojure (via reify, extending a defrecord, etc). On Tuesday, February 18, 2014 6:47:38 AM UTC-6, Michael Klishin wrote: > > > 2014-02-18 16:00 GMT+04:00 Sunil S Nandihalli > <sunil.na...@gmail.com<javascript:> > >: > >> You can't call a clojurescript function from java. However you can call >> clojure-code from Java and clojurescript code from javascript. > > > I think the idea is to call a Clojure script (with a space) from Java. > > Use clojure.lang.RT#var and clojure.lang.IFn#invoke to call > clojure.core/load-file > and similar clojure.core functions: > > > http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java > -- > MK > > http://github.com/michaelklishin > http://twitter.com/michaelklishin > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.