Big Crazy Problem With getResourceAsStream - Please Help !! [message #461441] |
Thu, 22 September 2005 23:15 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03645 seconds