LWJGL
May 22, 2012, 16:26:52 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: 1 [2]
  Print  
Author Topic: Problem with packaging  (Read 1759 times)
strollingchimp
Newbie
*
Posts: 8


« Reply #15 on: October 01, 2011, 12:37:21 »

Thanks for the help and the link. It does run now but the application only opens for a second and then it closes again. This is the output:

Trying window - 1280x800
Window successful
Exception in thread "main" java.lang.ExceptionInInitializerError
        at platformertrylwjgl.PlatformerTry.loadGame(PlatformerTry.java:55)
        at platformertrylwjgl.PlatformerTry.startGame(PlatformerTry.java:46)
        at platformertrylwjgl.PlatformerTry.main(PlatformerTry.java:170)
Caused by: java.lang.RuntimeException: Resource not found: res/tex/TestTexture.p
ng
        at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoa
der.java:69)
        at platformertrylwjgl.graphics.TextureManager.loadTexture(TextureManager
.java:26)
        at platformertrylwjgl.graphics.TextureManager.<clinit>(TextureManager.ja
va:20)
        ... 3 more
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 961



« Reply #16 on: October 01, 2011, 13:17:04 »

looks like you left your game resources out when exporting the game jar from eclipse, namely:

Caused by: java.lang.RuntimeException: Resource not found: res/tex/TestTexture.png
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!