NiftyGUI code wrong

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:nifty_gui



[java]NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(

assetManager, inputManager, audioRenderer, guiViewPort);

nifty = niftyDisplay.getNifty();

nifty.fromXml("Interface/helloworld.xml", "start");



// attach the nifty display to the gui view port as a processor

guiViewPort.addProcessor(niftyDisplay);



// disable the fly cam

flyCam.setDragToRotate(true);[/java]



imports done, but compiler cant find nifty

The tutorial assumes nifty is already declared.

Declare it on line 3 and it should work.