Original Post
Me again. [smile] I have an applet that needs to load a variety of images from a JAR archive. Unfortunately, these puppies are refusing to be accessed. Here's what I've tried already in an attempt to load the images:
Image img = parentApplet.getImage( parentApplet.getClass().getClassLoader().getResource("Data/Graphics/"+folder+"&#<span class="java-number">47</span>;"</span>+key+<span class="java-literal">".png"</span>) );
<span class="java-comment">// and..</span>
Image img = parentApplet.getImage( parentApplet.getCodeBase(), <span class="java-literal">"Data&#<span class="java-number">47</span>;Graphics&#<span class="java-number">47</span>;"</span>+folder+<span class="java-literal">"&#<span class="java-number">47</span>;"</span>+key+<span class="java-literal">".png"</span> );
</pre></div><!--ENDSCRIPT-->
When I simply provide the data WITHOUT a JAR file, simply placed in the same directory, it works beautifully, so I don't think it's a directory issue. It only likes to bork when I package the information in a JAR archive. The rest of the applet loads just fine.
I'm wide open to ideas, and as always: thanks in advance. You Java folks rock. [smile]
EDIT: Oh, darn. Pretend those warped HTML codes GD.NET converted are really forward slashes.</code></pre></div>