Locating j3md inside jar

I’ve built a library that provides an API for a Material, and therefore includes a j3md and shaders.

Now I want to use this library from my game, but when I try to instance this material I get:

com.jme3.asset.AssetNotFoundException: MatDefs/Anim.j3md
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:373)

What does the structure inside the .jar file look like and is it really on your classpath?

1 Like

Whoops! My bad: imported only the code jar but forgot about the asset.jar (where the j3md is actually located)

2 Likes