After update : java.lang.ClassNotFoundException: com.jme3.scene.plugins.blender.BlenderModelLoader

After update I am getting this following error, even from empty application.



java.lang.ClassNotFoundException: com.jme3.scene.plugins.blender.BlenderModelLoader

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

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

at java.lang.Class.forName(Class.java:169)

at com.jme3.asset.DesktopAssetManager.registerLoader(DesktopAssetManager.java:135)

at com.jme3.asset.AssetConfig.loadText(AssetConfig.java:74)

at com.jme3.asset.DesktopAssetManager.(DesktopAssetManager.java:88)

at com.jme3.system.JmeDesktopSystem.newAssetManager(JmeDesktopSystem.java:56)

at com.jme3.system.JmeSystem.newAssetManager(JmeSystem.java:87)

at com.jme3.app.Application.initAssetManager(Application.java:162)

at com.jme3.app.Application.initialize(Application.java:490)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:204)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:129)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:662)



What’s the reason?

1 Like

The blender libraries are not included by default as you are not supposed to load blender models in-game. You can add it via the libraries settings.

good to know, that log message have disturbed me for a fel days…

@normen said:
The blender libraries are not included by default as you are not supposed to load blender models in-game. You can add it via the libraries settings.


But I was loading .j3o file. Not any blender model.

Yeah, still the blend files are added to the default asset manager, that should be removed some time or done with a check for one of the blender loader classes.

Thanks

yeh was annoying me as well :stuck_out_tongue:

@iamcreasy:



about SDK



could you try to export .blend → j3o (directly) then add tantengs in SceneComposer, then assign material with normal map to model, save and load again to SceneComposer. and tell me if you will have exception or not



becouse i have exception doing like it(i must use ogre meshes to j3o)

It does give that error:

@normen said:
Yeah, still the blend files are added to the default asset manager, that should be removed some time or done with a check for one of the blender loader classes.
1 Like
@normen said:
The blender libraries are not included by default as you are not supposed to load blender models in-game. You can add it via the libraries settings.

How can I fix this? Where am I supposed to find them?

I saw this warning too in a basic test app that just loads a single .j3o model.



I think it’s a bad warning because I’m not even doing anything with blender files and it stops the scrolling of the log in the SDK because of the stack trace. This is not a warning-worthy condition in my opinion and definitely doesn’t deserve a stack trace.



Something is buggy but I don’t have time to investigate. It would be better for the person who added the bug to fix it, I guess.

yeh this exception still haunts my dreams :frowning:

@normen said:
Yeah, still the blend files are added to the default asset manager, that should be removed some time or done with a check for one of the blender loader classes.
1 Like

So is there any possibility we can fix this? Or is it just Development matter ? Sometimes the same app not runs correctly because of thrown exception, I cannot even catch this to ignore (can I?)… I thought I installed plugin, but did not add some.jar file as a project library…

Maybe it’s a different error. When I see it, it’s always a warning.



If you are trying to actually load .blend files directly then that could be your problem. It’s really not recommended. Otherwise, this “error” is just a warning log and can be ignored for the most part… though it does stall the JMP console output. A small annoyance.

As said, just add the jme3-blender library to your project.

That’s what I was looking for, it works !

For newbies as I am, I decided to take some screenshots in order to help, but it’s intuitive:

http://www.freeimagehosting.net/84164



http://www.freeimagehosting.net/87a65



http://www.freeimagehosting.net/b4233

Fixed:

http://www.freeimagehosting.net/763ce



Thanks for advice, next time will make it other way :wink:

1 Like

no harm with the screenshots :P, smaller images preferable and they can be embedded with tags. Also nice last photo :smiley:

http://hub.jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/library-and-source-cleanups-bye-bye-jmonkeyengine3-jar/