JME3 Eclipse Assetmanager is null


i’m new to Jme3 and want to start using it with Eclipse - the IDE i know best.

I downloaded the latest nightly build and added it succesfully to the source path of the “hello world” project.

Also the jars in the lib folder are added to the build path.

It compiles with no errors.

When starting the project, i have the problem that the ‘assedmanager’ is null?! Why?

Basically the it happens with just this few lines of code:


public static void main(String[] args) {

Main app = new Main();




public void simpleInitApp() {

Box b = new Box(Vector3f.ZERO, 1, 1, 1);

Geometry geom = new Geometry(“Box”, b);

if(assetManager == null){

System.out.println(“Asset Manager is null”);


Material mat = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);

mat.setColor(“Color”, ColorRGBA.Blue);





I really love jMonkey engine already, and was extremly happy finding this. I would be so happy to use it further.

Thanx for your help to basic guys like me :smiley:


The assetManager can only be null at this point.

you have to call:


instead of


in line 3

1 Like


that works!! Tank you. Havn’t seen that.