java.lang.NoClassDefFoundError: de/lessvoid/nifty/input/mouse/MouseInputEvent

I wanted the Nifty sources so I downloaded all the JAR’s from their site.



de.lessvoid.nifty.input.mouse.MouseInputEvent isn’t in there. Anyone know why nifty 1.3 from jMonkey has this class but nifty 1.3 from nifty doesn’t?



Thanks

Because this class was removed from Nifty 4 months ago according to that commit http://nifty-gui.git.sourceforge.net/git/gitweb.cgi?p=nifty-gui/nifty;a=commit;h=9e0d4535e5b893c5528ae8dca5911e55cb7c1c5d



You seem to have a old nifty-1.3-SNAPSHOT.jar somewhere in your classpath …

Yeah, from the jMonkey platform…



java.lang.NoClassDefFoundError: de/lessvoid/nifty/input/mouse/MouseInputEvent

at com.jme3.niftygui.InputSystemJme.onMouseMotionEventQueued(InputSystemJme.java:103)

at com.jme3.niftygui.InputSystemJme.forwardEvents(InputSystemJme.java:163)

at de.lessvoid.nifty.Nifty.update(Nifty.java:227)

at com.jme3.niftygui.InputSystemJme.endInput(InputSystemJme.java:91)

at com.jme3.input.InputManager.processQueue(InputManager.java:551)

at com.jme3.input.InputManager.update(InputManager.java:600)

at com.jme3.app.Application.update(Application.java:453)

at web.mcmasters.jmonkey.Game.update(Game.java:69)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:158)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:203)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:221)

at java.lang.Thread.run(Unknown Source)



In any case, nifty 1.3 from nifty doesn’t have this class, but in the nifty 1.3 in jmonkey it exists.

No, its only in the *-SNAPSHOT.jar files, not in the current svn.

So instead of using the jars under jmonkeyplatform/libs that the alpha 4 SDK installed, I should use the jars under http://jmonkeyengine.googlecode.com/svn/trunk/engine/libs and check out http://jmonkeyengine.googlecode.com/svn/trunk/engine/src to build jmonkey?

No, in the latest svn version the libraries are the “final” 1.3 libs, so you just need to update to nightly. When alpha-4 came out they were not available yet, so it has the snapshots.

I’m not sure I understand exactly. You can develop against stock alpha 4 or you can develop against the nightlies. If you develop against stock alpha 4 then you will be developing against 3 month old code and libraries… so some things will have changed since then.

I understand that… I tried the nightlies once and had other problems.



How far off is the beta?

visible on the horizon