I am developing a project in Eclipse RCP. Everything is working fine, expect the icons. I am able to get the icons when I am executing the code. But when I package it as a product, the icons are inside the jar f开发者_开发技巧ile and I get a file not found exception when I run the executable. How do package icons required for my app for my eclipse RCP.
Regards,
did you had icons folder in build.xml?
try defining icon in your product definition
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="org.eclipsercp.hyperbola.application"
name="Hyperbola Chat Client">
<property
name="aboutImage"
value="icons/about.gif"/>
<property
name="aboutText"
value="%aboutText"/>
<property
name="windowImages"
value="icons/online.gif"/>
<property
name="appName"
value="Hyperbola Chat Client">
</property>
</product>
</extension>
精彩评论