Stuck with Getting Started with JME3 (3) - Hello Assets

I’m having issues getting the town scene to load under the exercises section.

Actually, it seems like the scenegraph isn’t updating at all (even after cleaning and rebuilding).

For example, if I comment out the code for the ninja, clean, rebuild and run, the ninja still shows up.

Yeah, after tinkering around a bit more with stuff, it seems like the first build of my java class is all that ever shows up, even if I change the code and clean and rebuild my main project. Using jMP, restarting it doesn’t help either.

Update jMP to the latest Nightly (F1: Help)

Awesome, thanks. Solved my problem. :smiley:

I noticed another problem that’s related strictly to the tutorial though.

The second last part of the Hello Assets tutorial tells you:

  1. Remove the code from the previous exercise.
  2. Move the unzipped town/ directory into the assets/Scenes/ directory of your project.

    But if you do that you’ll be missing some files like main.material and level.mesh.xml. (all the necessary files can be found in the .zip file, just not in the town/ folder)

    Also, the ziplocator is throwing a fit. :frowning:

    [java] assetManager.registerLocator(“”, ZipLocator.class.getName());

    Spatial gameLevel = assetManager.loadModel(“main.scene”);

    gameLevel.setLocalTranslation(0, -5.2f, 0);



    Replacing the other code for loading the town w/ that throws up this error during the build:

cannot find symbol
symbol : class ZipLocator
location: class jme3test.helloworld.HelloAssets
assetManager.registerLocator("", ZipLocator.class.getName());
1 error

I guess it depends on your unzip tool what it does, if it creates a folder with the same name as the zip then the tutorial is right. Maybe it should read “the unzipped contents”. For the cannot find symbol error: you have to import the class. (Shift-Ctrl-I)

Nah. The zip file contains all the files in the main folder of the zip file, but inside the zip file is also the town/ folder with most of the same files but not all. So when I extracted just the town/ folder into the scene location, those files were missing too.

Also, thanks a bunch for the Shift-Ctrl-I tip. I can already tell it’s going to be super useful. :smiley:

– Moved to a separate topic:

I’m running against the latest nightly build of jME3 (2010-11-21). I get an exception on

[java]assetManager.registerLocator(“”, ZipLocator.class.getName());[/java]

[java]Nov 21, 2010 12:42:57 PM com.jme3.asset.DesktopAssetManager registerLoader

WARNING: Failed to find loader:



at Method)


at java.lang.ClassLoader.loadClass(

at sun.misc.Launcher$AppClassLoader.loadClass(

at java.lang.ClassLoader.loadClass(

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(

at com.jme3.asset.DesktopAssetManager.registerLoader(

at mygame.Main.simpleInitApp(


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



Nov 21, 2010 12:42:57 PM com.jme3.asset.DesktopAssetManager loadAsset

WARNING: Cannot locate resource: main.scene[/java] is in the root of my project directory. Any clues?