Whenever I add an AudioNode

Whenever I add an AudioNode like this, and try to run the program

AudioNode audio_run = new AudioNode(assetManager, “Sounds/run.wav”);

following error occures


Deleting: C:UsersIrfanjMonkeyProjectsside_scrollingbuildbuilt-jar.properties


Updating property file: C:UsersIrfanjMonkeyProjectsside_scrollingbuildbuilt-jar.properties

Compiling 1 source file to C:UsersIrfanjMonkeyProjectsside_scrollingbuildclasses

Note: C:UsersIrfanjMonkeyProjectsside_scrollingsrcmygameMain.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.



Exception in thread “main” java.lang.NullPointerException

at com.jme3.audio.AudioNode.(AudioNode.java:89)

at com.jme3.audio.AudioNode.(AudioNode.java:93)

at mygame.Main.(Main.java:62)

at mygame.Main.main(Main.java:89)

Java Result: 1

BUILD SUCCESSFUL (total time: 1 second)

why just adding the the node will cause any kind of problem?

It fails to load the file.

Check the path to your sound file.