Error reading icon.png for plugin

haddock
haddock New Altair Community Member
edited November 5 in Community Q&A
Greets Folks,

I'm just easing myself into plugin land and enjoying same; there is one minor glitch I can't find an answer to, which has to do with the following error message...
May 5, 2010 7:11:13 PM WARNING: Error reading icon.png for plugin Haddock
Which shows if I do Help->About Installed Extensions->About Haddock Extension. Does anybody know how to resolve this?

Hope so!

Answers

  • haddock
    haddock New Altair Community Member
    Solved. No thanks to anyone but myself.
  • radone
    radone New Altair Community Member
    I am currently dealing with the same problem. Could you please give to all the community some advices?

    thank you,
    radone
  • fischer
    fischer New Altair Community Member
    Hi,

    you can put an icon.png under META-INF/. E.g., put it under resources/META-INF/. The next version of the whitepaper will contain a hint.

    Cheers,
    Simon
  • radone
    radone New Altair Community Member
    I have placed my img_icon.png file to my JAR file at:
    - META-INF/img_icon.png
    and also to
    - icons\16\img_icon.png
    - icons\24\img_icon.png
    - icons\48\img_icon.png


    in the OperatorsTemplate.xml
     
              ...
                <group key="my_plugin">
      <icon>img_icon.png</icon>
              ...
     
              ...
                <group key="my_plugin">
      <icon>icons/16/img_icon.png</icon>
              ...
    Unfortunately, without any success.
  • haddock
    haddock New Altair Community Member
    Hi there,

    My apologies for not replying sooner, I just needed to check that the original problem is still there, and it is  ;D The solution that works for me now has two stages.

    1. Stick your icon file in the resources folder of your Eclipse Extension project.
    2. Refer to it in the "build_extension.xml" file in the Vega release, the offending line is currently...
    <metainf dir="${build.resources}" includes="ABOUT.NFO" />
    So if your icon file is icon.png it should read
    <metainf dir="${build.resources}" includes="ABOUT.NFO icon.png" />
    And it all might work for you like it just has for me, hope so.