Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Images do not appear in deployed application
Images do not appear in deployed application [message #101079] Mon, 04 August 2008 09:26 Go to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
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 15:54 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
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 07:28 Go to previous message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
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
>>
Previous Topic:Tree Full_selection Problem
Next Topic:when Rap 1.2 starts?
Goto Forum:
  


Current Time: Thu Apr 25 03:37:58 GMT 2024

Powered by FUDForum. Page generated in 0.02718 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top