I feel really stupid - I'm pretty sure I just forgot to build. Anyhow, the ant simulation works perfectly (ubuntu, clojure revision 1131). It's real cool. Sure is alot going on with just 200 or so lines of codes.
On Nov 29, 12:51 pm, Blaine <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm having almost the same problem. I'm trying to get the ants demo > running in ubuntu, and I get Rob's second problem: > > user=> (def panel (doto (proxy [JPanel] [] > (paint [g] (render g))) > (.setPreferredSize (new Dimension > (* scale dim) > (* scale dim))))) > java.lang.IllegalArgumentException: No matching method > found: .setPreferredSize for class clojure.lang.Proxy__203 > (NO_SOURCE_FILE:7) > > The rest of the file loads - if I run clojure from within slime I can > individually compile the rest of the defns. (That said, I can no > longer start clojure from within slime. After updating clojure it > stopped working.) > > I'm at revision 1128 for clojure. > > I'm new to Java, so is it possible that I don't have some Swing/AWT > thing installed? No complaint from: > > user=> (import > '(java.awt Color Graphics Dimension) > '(java.awt.image BufferedImage) > '(javax.swing JPanel JFrame)) > nil > > And, the java version, in case that's relevant: > > [EMAIL PROTECTED]:~$ java -version > java version "1.6.0_07" > Java(TM) SE Runtime Environment (build 1.6.0_07-b06) > Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing) > > Any ideas? > > Thanks,Blaine --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
