Hi. I’m in Ludum Dare 31 and I need an answer fast. I’m trying to export my LibGDX project in Eclipse as a Runnable Jar. When I run the jar, the window opens for a few seconds, and then closes.
I’m guessing that’s because it can’t load one of my assets, but the project runs fine in Eclipse. I’ve also exported projects like this the same way before and never ran into this problem. I am exporting the desktop project, clicking Runnable JAR file, Package required libraries into generated jar, and the launch configuration goes to the DesktopLauncher class of my desktop project.
So again, when I run the runnable jar by double clicking on it, the window opens for a few seconds, then closes. I’m loading all my assets at the beginning of the program, so it’s probably something to do with that. Again, it’s fine just running it in Ecliipse. Should I run it in the command prompt? How exactly would I do that?