Ok I’m trying to get my game webstartable (blah…) and I’ve been struggling to get it to find the resources (images and sound). Do I need to use packages for it to work? I’ve tried with and without without any luck. To load my image I use
Toolkit.getDefaultToolkit().getImage(getClass().getResource(“images/imagename.gif”));
The images are in the correct directory. It works when I run it without JAR’ing it.
It throws a NullPointerException when trying to load the image (at sun.awt.image.URLImageSource.getConnection).
My manifest only conatins the main-class line. what classpath should I put in? if any? thanks…
I tried Kevin Glass’s walkthru with webstart/jnlp, didnt help much, any help??
