Images do not appear in deployed application [message #101079] |
Mon, 04 August 2008 05:26  |
Eclipse User |
|
|
|
Hi,
I store my images in src/resources/images.
I use the following to get images for my treeviewers and actions :
Graphics.getImage("/resources/images/image.png",classLoader);
In eclipse, everything works fine but in my deployed application, images
do not appear... except those which are decorated ! Furthermore, I get
images used for decoration in the same way than the others !!!
I have no exception or error messages saying that images could not be
found...
Any ideas ?
Emmanuel
|
|
|
Re: Images do not appear in deployed application [message #101105 is a reply to message #101079] |
Mon, 04 August 2008 11:54   |
Eclipse User |
|
|
|
Hi Emmanuel,
have you tried omitting the leading backslash when registering, e.g.
Graphics.getImage("resources/images/image.png",classLoader);
instead of
Graphics.getImage("/resources/images/image.png",classLoader);
?
Regards,
Stefan.
Emmanuel schrieb:
> Hi,
>
> I store my images in src/resources/images.
>
> I use the following to get images for my treeviewers and actions :
> Graphics.getImage("/resources/images/image.png",classLoader);
>
> In eclipse, everything works fine but in my deployed application, images
> do not appear... except those which are decorated ! Furthermore, I get
> images used for decoration in the same way than the others !!!
>
> I have no exception or error messages saying that images could not be
> found...
>
> Any ideas ?
>
> Emmanuel
>
|
|
|
Re: Images do not appear in deployed application [message #101149 is a reply to message #101105] |
Tue, 05 August 2008 03:28  |
Eclipse User |
|
|
|
Sometimes the solution of a problem is very easy... like here !
Thanks a lot, Stephan
Stefan Roeck wrote:
> Hi Emmanuel,
> have you tried omitting the leading backslash when registering, e.g.
> Graphics.getImage("resources/images/image.png",classLoader);
> instead of
> Graphics.getImage("/resources/images/image.png",classLoader);
> ?
> Regards,
> Stefan.
> Emmanuel schrieb:
>> Hi,
>>
>> I store my images in src/resources/images.
>>
>> I use the following to get images for my treeviewers and actions :
>> Graphics.getImage("/resources/images/image.png",classLoader);
>>
>> In eclipse, everything works fine but in my deployed application, images
>> do not appear... except those which are decorated ! Furthermore, I get
>> images used for decoration in the same way than the others !!!
>>
>> I have no exception or error messages saying that images could not be
>> found...
>>
>> Any ideas ?
>>
>> Emmanuel
>>
|
|
|
Powered by
FUDForum. Page generated in 0.07008 seconds