• Advertisement
Sign in to follow this  

Slick: Resource not found

This topic is 2323 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I started working with the slick 2D game engine for my upcoming 2D platformer written in Java. I started working on it today and i set it up according to the Slick website. However when I run it it throws this error:
Thu Oct 13 22:06:41 NZDT 2011 ERROR:Unable to determine Slick build number
Thu Oct 13 22:06:41 NZDT 2011 INFO:LWJGL Version: 2.7.1
Thu Oct 13 22:06:41 NZDT 2011 INFO:OriginalDisplayMode: 1920 x 1080 x 32 @60Hz
Thu Oct 13 22:06:41 NZDT 2011 INFO:TargetDisplayMode: 854 x 500 x 0 @0Hz
Thu Oct 13 22:06:41 NZDT 2011 INFO:Starting display 854x500
Exception in thread "main" java.lang.RuntimeException: Resource not found: org/newdawn/slick/data/defaultfont.png
at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:69)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:169)
at org.newdawn.slick.Image.<init>(Image.java:196)
at org.newdawn.slick.Image.<init>(Image.java:170)
at org.newdawn.slick.Image.<init>(Image.java:158)
at org.newdawn.slick.Image.<init>(Image.java:136)
at org.newdawn.slick.AngelCodeFont.<init>(AngelCodeFont.java:104)
at org.newdawn.slick.Graphics$1.run(Graphics.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at org.newdawn.slick.Graphics.<init>(Graphics.java:139)
at org.newdawn.slick.GameContainer.initSystem(GameContainer.java:752)
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:378)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314) at me.spacekid434.Exordium.Game.main(Game.java:72)[/quote]

I'm using Eclipse as my IDE. I have included both slick.jar and lwjgl.jar in the build-path and have them in the root directory.

Please help!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement