Exporting Slick Game

Hey guys,

I want to submit my game to the Work in Progress, so I need to export the game.
So I made the jar, finished it off with JarSplice, ran it in cmd and suddenly this Exception occured:


C:\Users\TIMONDESKTOP>java -jar C:\Users\TIMONDESKTOP\Desktop\Jars\Nemesis.jar
Mon Aug 26 23:26:58 CEST 2013 INFO:Slick Build #237
Mon Aug 26 23:26:59 CEST 2013 INFO:LWJGL Version: 2.9.0
Mon Aug 26 23:26:59 CEST 2013 INFO:OriginalDisplayMode: 1920 x 1080 x 32 @60Hz
Mon Aug 26 23:26:59 CEST 2013 INFO:TargetDisplayMode: 1920 x 1080 x 32 @60Hz
Mon Aug 26 23:26:59 CEST 2013 INFO:Starting display 1920x1080
Mon Aug 26 23:26:59 CEST 2013 INFO:Use Java PNG Loader = true
Mon Aug 26 23:26:59 CEST 2013 INFO:Controllers not available
Exception in thread "main" java.lang.RuntimeException: Resource not found: resou
rces/spritesheets/birk_anim.png
        at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoa
der.java:69)
        at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTex
tureLoader.java:185)
        at org.newdawn.slick.Image.<init>(Image.java:192)
        at org.newdawn.slick.Image.<init>(Image.java:166)
        at org.newdawn.slick.Image.<init>(Image.java:154)
        at org.newdawn.slick.Image.<init>(Image.java:132)
        at nl.tdegroot.games.nemesis.gfx.Resources.<init>(Resources.java:36)
        at nl.tdegroot.games.nemesis.Nemesis.init(Nemesis.java:34)
        at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:393)
        at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:317)
        at nl.tdegroot.games.nemesis.RunGame.main(RunGame.java:14)

This means that I need to include class folder, but I have already done this in Eclipse and I can’t really find an alternative in IntelliJ(My main IDE).

Do you guys know how to kill this problem?

Thank you in advance!

Anyone?

To what I can tell you, and anyone can tell you based on what you have given us.


Exception in thread "main" java.lang.RuntimeException: Resource not found: resou
rces/spritesheets/birk_anim.png

so birk_anim.png is not found, and I bet it is the first image you try and load. you have something wrong with the path to your images.

You need to look into reading stack traces, you should be able to understand stack traces if your making games, they are easy to read, and will save you time. They usually point to exactly where the problem is.


 at nl.tdegroot.games.nemesis.gfx.Resources.<init>(Resources.java:36)

The problem is within Resources file on line 36.

I know what the problem is, and I know how to read Stack Traces.
The only problem is, that in project I use resources/spritesheets/birk_anim.png, but when I export it, the resources folder gets extracted, which means, all first-child folders in the resources folder get moved to the root directory of the jar.