Launching program with assets from command prompt? [FIXED]

Hello,



I have been working with jMonkeyPlatform for a few weeks now and found this forum very useful as reference. But, not all I need to know can be found here (yet), so I decided to join and ask the question for myself :slight_smile:



When I try to launch my program (in WIndows 7, 64 bit) by double clicking ā€œEnemy Ahead.jarā€ it shows my splash picture, after a second or so the ā€˜Select Display Settings’ gets shown on top of the splash. When I click ā€˜OK’ in the ā€˜Select Display Settings’, the screen of my program is shown briefly and then it disappears.



Same happends when I try to launch it from my DOS console and in there, I can see the following:





I have a model (.obj) of a ship in the ā€˜assets’ folder but somehow it seems as if this can’t be found when running the JAR file. I am sure there is a simple solution, but I haven’t got a clue where to look. So, I was wondering if somebody here could give me a simple instruction/direction on how to get this work.



Running the program from jMonkeyPlatform (Alpha 4) works fine.



Regards,



Husky

You have to convert all your model assets (.obj, mesh.xml) to .j3o because they are removed when you compile.

I knew it was simple… Thank you, that did the trick!



Husky