Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Big Crazy Problem With getResourceAsStream - Please Help !!
Big Crazy Problem With getResourceAsStream - Please Help !! [message #461441] Thu, 22 September 2005 23:15 Go to next message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

Hello everybody, i have discovered an important error and i don't know
at all how to resolve it. The problem is simple to describe :
I have an application in SWT, all icons are ok when i launch on Eclipse
(Run as -> SWT Application). All icons are loaded, with different
size, etc..
But i have try to export my application, standalone, and no icons are
loaded when the jar is launched. This line is always null :

ImageData(IconLoader.class.getClassLoader().getResourceAsStr eam( "./Category_Project.ico"));

The file is everywhere, and i dont find solution. I am on this probleme
since several hours. Somebody have an idea?

Please Help me i desesperate !!
Thank you !

Sincerely,
Vincent
Re: Big Crazy Problem With getResourceAsStream - Please Help !! [message #461442 is a reply to message #461441] Fri, 23 September 2005 00:26 Go to previous message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

Vinz a écrit :
>
> Hello everybody, i have discovered an important error and i don't know
> at all how to resolve it. The problem is simple to describe :
> I have an application in SWT, all icons are ok when i launch on Eclipse
> (Run as -> SWT Application). All icons are loaded, with different size,
> etc..
> But i have try to export my application, standalone, and no icons are
> loaded when the jar is launched. This line is always null :
>
> ImageData(IconLoader.class.getClassLoader().getResourceAsStr eam( "./Category_Project.ico"));
>
>
> The file is everywhere, and i dont find solution. I am on this probleme
> since several hours. Somebody have an idea?
>
> Please Help me i desesperate !!
> Thank you !
>
> Sincerely,
> Vincent

In fact it was a simple problem, the icons must be in the jar files
to work ! Good night everybody !

Sincerely,
Vincent
Previous Topic:dynamic shell style ?
Next Topic:popup context menu
Goto Forum:
  


Current Time: Thu Mar 28 23:56:54 GMT 2024

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

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

Back to the top