chai
chai

Reputation: 1483

How to package icons on Eclipse RCP

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 file 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,

Upvotes: 0

Views: 1056

Answers (2)

dpndeveloper
dpndeveloper

Reputation: 76

did you had icons folder in build.xml?

Upvotes: 2

Kane
Kane

Reputation: 8172

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>

Upvotes: 1

Related Questions