instantiating a clojure record from Java

2012-09-18 Thread Jim - FooBar();
I want to instantiate a record and call a fn from java source code... I've got this in my .java file: //prepare java-clojure interop private static IFn requireFn = RT.var(clojure.core, require).fn(); static {requireFn.invoke(Symbol.intern(Clondie24.games.chess));} //the namespace

Re: instantiating a clojure record from Java

2012-09-18 Thread Jim - FooBar();
trying at the repl: (class (Player. nil 1)) =Clondie24.games.chess.Player if the fully-qualified name won't work I don't know what will! weird-stuff... Jim On 18/09/12 19:04, Jim - FooBar(); wrote: I want to instantiate a record and call a fn from java source code... I've got this in

Re: instantiating a clojure record from Java

2012-09-18 Thread Sean Corfield
On Tue, Sep 18, 2012 at 11:04 AM, Jim - FooBar(); jimpil1...@gmail.comwrote: However i get again: ClassNotFoundException Clondie24.games.chess.Player That suggests the Clojure code isn't AOT compiled and/or isn't on your class path? -- Sean A Corfield -- (904) 302-SEAN An Architect's View --