Hi all,
I have a slightly unusual use-case: I cannot run my JME app with java -jar, but instead need to run my JME app from Matlab, which has a bundled JRE. I get the error message:
[java]java.lang.IllegalStateException: No loader registered for type “fnt”
at com.jme3.asset.ImplHandler.aquireLoader(ImplHandler.java:199)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:265)
at com.jme3.asset.DesktopAssetManager.loadFont(DesktopAssetManager.java:375)
at com.jme3.app.SimpleApplication.loadGuiFont(SimpleApplication.java:181)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:189)
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(Unknown Source)
[/java]
Up until that point all is well. Note that I do need fonts and graphics - this isn’t running headless.
I’ve told it to import all JARs from the dist/lib directory, so I end up with the classpath:
D:/Documents/jMonkeyProjects/Paths1/dist/lib/xuggle-xuggler-5.4.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/xmlpull-xpp3.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/vecmath.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/tritonus_share-0.3.6.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/tritonus_aos-0.3.6.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/stack-alloc.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/slf4j-api-1.6.4.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/nifty.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/nifty-style-black.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/nifty-default-controls.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/lwjgl.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jmeCapture.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jinput.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jbullet.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/javacsv.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-testdata.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-terrain.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-plugins.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-niftygui.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-networking.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-lwjgl.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-lwjgl-natives.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-jogg.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-jbullet.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-effects.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-desktop.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-core.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/jME3-blender.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/j-ogg-vorbisd.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/j-ogg-oggd.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/eventbus.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/audio-send.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/audio-send-natives.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/assets.jar
D:/Documents/jMonkeyProjects/Paths1/dist/lib/Jama-1.0.2.jar
D:/Documents/jMonkeyProjects/Paths1/dist/MyGame.jar
D:/Documents/MATLAB/
Any idea how I can diagnose the problem? When @beatlefan had this error message when also using SimpleApplication in an unusual way, he reported that he:
Got it to work...I had to extract some of the resouces from the jMonkeyEngine3.jar: the Desktop.cfg, and everything in the Common and Interface folders to the working directory and change the first line in Desktop.cfg to use FileLocator.
But now that JME has been restructured into separate jars, I don't know which files are required... had no luck with just Desktop.cfg.
Thank you!
Peter.