Nifty tutorial – load fail


im trying out the Nifty-Gui-Tutorial on this page using the Jmonkey SDK.

Everything works fine, the “text”-tag does display in “Design”-view, but when i try to add the “image”-tags shown in the tutorial the Design view does not work anymore. (I guess the problem is the -filename cant be found) Therefore i added the png-files to the same folder as the “screen.xml”-file, but still the png-files are not found by the design view. Where to add the files which are accessed by the “image”-tag ? i have searched nifty’s bible already but couldn’t find anything.

The design view is actually buggy anyway. Are you on linux? Which version of the JDK are you on?

1 Like

I’m on windows 7. Also doesn’t work, outputting following error:


com.jme3.asset.AssetNotFoundException: Interface/helloJME.xml

at com.jme3.niftygui.NiftyJmeDisplay$ResourceLocationJme.getResourceAsStream(


at de.lessvoid.nifty.Nifty.getResourceAsStream(

at de.lessvoid.nifty.Nifty.loadFromFile(

at de.lessvoid.nifty.Nifty.fromXml(

at TestNiftyGui.simpleInitApp(


at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(


at Source)


the filename and its location is correct as specified here in the code:


nifty.fromXml(“Interface/helloJME.xml”, “start”, this);



If it is of somebodies interest:

I downloaded “” , imported it in jme3-SDK, started it, worked.

Looked at XML Design view. gave errors. So you are right with the assumption that it is kind of buggy.

Thanks for the tip.