Sorry, I think I was being unclear with my problem description. What I meant was:
I’ve got 2 jars - 1 jar contains all the program code (ie, .class, .java and 1 dll file), the other contains all images and sound files that I would like to use within the application, which I plan to distribute using just webstart and as seperately downloadable jar files.
The problem is:
How do I load/reference the image and sound files within the “image and sound” jar from the “program code” jar?
getClass().getClassLoader().getResource("myimagename.png"));
or
getClass().getClassLoader().getResourceAsStream("mystreamabledata.dat");
I’ve tried that and simply “getClass().getResource()” which I think is an equivalent statement. Both won’t work since the images are located within a jar that is outside the program jar.
Besides that, is there a convenient way to load a library dll file that is jar’red together with the program code?