Resolved, thanks to peoples from #clojure
Alex Ott at "Tue, 22 Dec 2009 11:03:28 +0100" wrote:
AO> Hello
AO> I'm currently playing with closure-templates, and have one question - to
AO> load template, i need to create instance of class, that is internal class
AO> of another java class:
AO> in java example there is following code
AO> SoyFileSet sfs = (new SoyFileSet.Builder()).add(new
File("simple.soy")).build();
AO> I'm trying to use following Clojure code:
AO> (ns hello-world
AO> (:import com.google.template.soy.SoyFileSet))
AO> (let [sfs (doto (new SoyFileSet.Builder)
AO> (.add (File. "hello_world.soy"))
AO> (.build))]
AO> but has no success - i tried to import explicitly via (:import
AO> com.google.template.soy.SoyFileSet.Builder), but only get
AO> java.lang.ClassNotFoundException
AO> How to properly create such instances?
--
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/ http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en