Login  Register

Re: Accessing picture file in a jar file

Posted by dscho on Feb 06, 2009; 3:16pm
URL: http://imagej.273.s1.nabble.com/Accessing-picture-file-in-a-jar-file-tp3693821p3693822.html

Hi,

On Fri, 6 Feb 2009, joris meys wrote:

> I want to access a .jpg file in the jar file I constructed for
> distribution of my plugin. It's a picture with the "About" information,
> like the "ImageJ About". If the picture itself is in the plugin
> directory, it works perfectly fine. However, if it's only in the
> jar-file, it doesn't want to find the picture. What am I doing wrong?

Are you sure that the class is read from the .jar file right where the
image is?  Or is the class in a package, while the image is on the
top-level of the .jar file?

Ciao,
Dscho