Java experts, please help!
So for the first time ever, I’ve actually managed to make a playable game. But for some reason I can’t export it properly.
After I’ve exported it from eclipse, using the “Package required libraries into generated JAR”, and tried to run it, nothing happens.
I think this has something to do with the external libraries I’m using (Java Audio Player). I’ve already checked the Main class-path in MANIFEST.MF. Normally I would just search for the solution, but I can’t seem to find anything that I haven’t already tried.
Comments
oskardevelopment
20. Apr 2015 · 18:20 UTC
If you start the game with the command prompt, “java -jar “game”” – what does the command prompt say was the problem?
20. Apr 2015 · 18:30 UTC
Are you using a library like slick2D by any chance?
20. Apr 2015 · 18:32 UTC
My mistake, didn’t read, you’re using Java audio player, Ok, I would recommend trying to use Jar Splice, then add your game’s .jar and the jar for the audio library. Then let jar splice created you an executable jar containing all of it.
AdamW
20. Apr 2015 · 18:40 UTC
It seems that I still get the same problem even with the jar created by jarsplice.
AdamW
20. Apr 2015 · 22:34 UTC
Thanks for all the help. The problem is now solved (almost), so that I can export and submit my game!