Oh and Clojure version is 1.1.0 On 7 Maj, 15:37, Michael Jaaka <[email protected]> wrote: > Hi! > > I'm trying to generate interface then implement it. > Here is a source code: > > (ns dede) > > (gen-interface > :name me.IBar > :methods [[bar [String] ]]) > > (compile 'dede) > > (import '(me IBar)) > > (let [z (proxy [ IBar ] [] (bar [a] (println a) ))] > (.bar z)) > > The output is > > user=> java.lang.NoClassDefFoundError: java/lang/ (dede.clj:11) > user=> > > I have classpath properly configured. Any ideas? This happens on > Windows. On Mac seems to work (however I've found that you can't proxy > classes with default package / no package). > > Btw. the usage with pair of calls for gen-interface then compile is > not practical. It would be nice if just executing the gen-interface > would generate the interface. > > -- > 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 > athttp://groups.google.com/group/clojure?hl=en
-- 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
