This answer is couple months too late but I was messing with robocode this weekend, had the same problem OP had. The solution is to unzip clojure.jar into the folder where your compiled class files are. That makes the error go away but it will also increase robocode's boot time by 20-30 secs.
Hope this helps... -- Nurullah Akkaya http://nakkaya.com On Mar 19, 10:56 am, ubolonton <ubolon...@gmail.com> wrote: > Hi, > > Has anyone been able to use Clojure with Robocode? > I've followed thishttp://www.fatvat.co.uk/2009/05/clojure-and-robocode.html > but got the error > > Round 1 initializing.. > Let the games begin! > java.lang.ExceptionInInitializerError > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce > ssorImpl.java: > 39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru > ctorAccessorImpl.java: > 27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at java.lang.Class.newInstance0(Class.java:355) > at java.lang.Class.newInstance(Class.java:308) > at > net.sf.robocode.host.security.RobotClassLoader.createRobotInstance(RobotCla > ssLoader.java: > 272) > at > net.sf.robocode.host.proxies.HostingRobotProxy.loadRobotRound(HostingRobotP > roxy.java: > 201) > at > net.sf.robocode.host.proxies.HostingRobotProxy.run(HostingRobotProxy.java: > 242) > at java.lang.Thread.run(Thread.java:637) > Caused by: java.lang.NullPointerException > at clojure.lang.Var.setMeta(Var.java:179) > at clojure.lang.Var.internPrivate(Var.java:96) > at ubolonton.MyRobot.<clinit>(Unknown Source) > ... 10 more > > Thanks -- 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