Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » problem while creating a jar file(I cant load any icons into the jar file )
problem while creating a jar file [message #666867] Sat, 23 April 2011 13:05 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: April 2011
Junior Member
I have a folder called MasteryEditorr and inside the folder there is the standard bin, src, and .settings folders as well as the .classpath and .project.

I created this project from eclipse and inside the MAsteryEDitor folder i have a file with 64 x 64 png pictures callsed masteryIcons

When I go and create the jar file (File-->Export->Jar File)
I do not see the mastery Icon folder to select but if I were to go to one of my old projects I created the pictures from old project would show up.

Can someone please help me into finding out why I cant load the png files into the jar file.

I tried to just put them in manually but they still wont show up when I run the program
Re: problem while creating a jar file [message #667004 is a reply to message #666867] Mon, 25 April 2011 08:29 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Is this a plain Java project? What are you using to load your icons,
getResourceAsStream(*)?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: problem while creating a jar file [message #667783 is a reply to message #666867] Mon, 02 May 2011 03:38 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 23.04.2011 19:06, snipekiller430@gmail.com wrote:
> I have a folder called MasteryEditorr and inside the folder there is
> the standard bin, src, and .settings folders as well as the .classpath
> and .project.
> I created this project from eclipse and inside the MAsteryEDitor
> folder i have a file with 64 x 64 png pictures callsed masteryIcons
>
> When I go and create the jar file (File-->Export->Jar File)
> I do not see the mastery Icon folder to select
Then it's probably not in your workspace a Java project.

Dani
> but if I were to go to one of my old projects I created the pictures
> from old project would show up.
>
> Can someone please help me into finding out why I cant load the png
> files into the jar file.
>
> I tried to just put them in manually but they still wont show up when
> I run the program
Previous Topic:How to change the view from Projects to Working Sets programmatically?
Next Topic:Re: visibleWhen of a menuContribution based on view selection
Goto Forum:
  


Current Time: Fri Jul 25 13:40:57 EDT 2014

Powered by FUDForum. Page generated in 0.03161 seconds