Thank you very much, for your quick reply! At least, i can be sure now, that in principle it should be working.
What i wanna do is wrap the jMonkeyEngine3. The hello world example (http://jmonkeyengine.org/wiki/doku.php/ jme3:beginner:hello_simpleapplication) works fine (code below). But when i add the addControls function (commented in code below) from the input example (http://jmonkeyengine.org/wiki/doku.php/ jme3:beginner:hello_input_system). I get the following error: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main] java.lang.ClassCastException: Cannot cast com.jme3.input.controls.KeyTrigger to [Lcom.jme3.input.controls.Trigger; at java.lang.Class.cast(Class.java:3007) at clojure.lang.Reflector.boxArg(Reflector.java:364) at clojure.lang.Reflector.boxArgs(Reflector.java:397) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:55) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) at hello$hello_jme3$fn__1654.invoke(NO_SOURCE_FILE:1) at hello.proxy$com.jme3.app.SimpleApplication$0.simpleInitApp(Unknown Source) at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java: 158) at hello.proxy$com.jme3.app.SimpleApplication$0.initialize(Unknown Source) at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java: 102) at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java: 147) at java.lang.Thread.run(Thread.java:636) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;j (add-classpath "your-path-to-jme/jMonkeyEngine3.jar") (ns hello (:import com.jme3.app.SimpleApplication com.jme3.material.Material com.jme3.math.Vector3f com.jme3.scene.Geometry com.jme3.scene.shape.Box com.jme3.math.ColorRGBA com.jme3.material.MaterialDef [com.jme3.input KeyInput InputManager] [com.jme3.input.controls Trigger KeyTrigger])) (defn hello-jme3 [] (let [b (Box. Vector3f/ZERO 1 1 1) geom (Geometry. "Box" b)] (proxy [SimpleApplication] [] (simpleInitApp [] (let [rn (proxy-super getRootNode) am (proxy-super getAssetManager ) m "Common/MatDefs/Misc/SolidColor.j3md" mat (Material. am m)] (let [im (proxy-super getInputManager)] ; Here's the error: ; (.addMapping im "Pause" (KeyTrigger. KeyInput/KEY_0)) ) (.setColor mat "m_Color" ColorRGBA/Blue) (.setMaterial geom mat) (.attachChild rn geom)))))) (.start (hello-jme3)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Any hints where to start searching the error? Thank you! JonnyB -- 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