LWJGL
May 22, 2012, 16:26:52
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.8.3 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
General Java Game Development
>
Problem with packaging
Pages:
1
[
2
]
« previous
next »
Print
Author
Topic: Problem with packaging (Read 1759 times)
strollingchimp
Newbie
Posts: 8
Re: Problem with packaging
«
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
Re: Problem with packaging
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...