But how?:)

On Dec 22 2009, 1:36 pm, Alex Ott <alex...@gmail.com> wrote:
> 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 tocreateinstanceofclass, that isinternalclass
>  AO> of anotherjavaclass:
>
>  AO> injavaexample 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 properlycreatesuch instances?
>
> --
> With best wishes, Alex Ott, MBAhttp://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 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

Reply via email to