Options

Error reading icon.png for plugin

haddockhaddock Member Posts: 849 Maven
edited October 2019 in Help
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!

Tagged:

Answers

  • Options
    haddockhaddock Member Posts: 849 Maven
    Solved. No thanks to anyone but myself.
  • Options
    radoneradone RapidMiner Certified Expert, Member Posts: 74 Guru
    I am currently dealing with the same problem. Could you please give to all the community some advices?

    thank you,
    radone
  • Options
    fischerfischer Member Posts: 439 Maven
    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
  • Options
    radoneradone RapidMiner Certified Expert, Member Posts: 74 Guru
    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.
  • Options
    haddockhaddock Member Posts: 849 Maven
    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.

Sign In or Register to comment.