Import models form a custom asset

Hello
I am beginner in Java and Jmonkey I work with Eclipse.

I want to import models into an asset.
However, I do not understand how.there is an asset folder at the root of my project that contain the models to load.

So I guess it must define the path of the current asset, but how?

Spatial square = assetManager.loadModel (“Models / / testcarre.j3o”);
this does not work because it is not the object, the path is corect yet.

What I should do?

thanks.

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:faq#why_do_i_get_assetnotfoundexception_when_loading_x

Add the assets folder to your classpath. Also check out the wiki, it contains all this information.

It’s work, thanks you :slight_smile: