I'm trying to get my first game type thing working with webstart.
At the moment my program appears briefly as a black screen and then shuts down straight away when I use webstart.
I'm quite sure i've got the security signatures, jar files and jnlp file right. As they probably would of popped up as exceptions.
I'm quite confident the problem is most likely loading resources:
texture = TextureLoader.getTexture("PNG", new FileInputStream("stonewall02.png"));
texture = TextureLoader.getTexture("PNG", new FileInputStream("stonefloor01.png"));
Those are examples of the lines that load the data in my program.. Worked fine in netbeans with the files in the project folder.
What do I change these lines to, and where do I put them in relation to my jar files to get it working properly?
I've read that it could be Resources.class.getClassLoader().getResource("path/to/logo.png"); however i'm not sure where the Resources object is.
Thanks for your help!
docpunkMember Since 22 Jan 2011
Offline Last Active Jul 06 2011 07:44 AM
- Group Members
- Active Posts 9
- Profile Views 1,319
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown