Original Post
[font=verdana, sans-serif][size=2]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:
fManager.loadSectorTypes("sectors01.txt");
fManager.loadLevel("level2.txt");
texture[0] = TextureLoader.getTexture("PNG", new FileInputStream("stonewall02.png"));
texture[1] = 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![/font]
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:
fManager.loadSectorTypes("sectors01.txt");
fManager.loadLevel("level2.txt");
texture[0] = TextureLoader.getTexture("PNG", new FileInputStream("stonewall02.png"));
texture[1] = 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![/font]