Why do all the images of the Plugin disappear once the plugin is exported as a jar and integrated in the IDE?

安稳与你 提交于 2020-04-17 18:56:43

问题


In my eclipse plugin, while testing the plugin(Run As Eclipse Application)-

As seen below, all the images in the New Wizard are rendered properly, highlighted in yellow.

However, once the plugin is exported as shown below, and placed as the jar in \eclipse\plugins, all the images are lost. What could be the reason for this?

After the jar is placed, the below is rendered without the images-

MANIFEST.MF file-


回答1:


Eclipse adds the compiled Java classes by default. Other files must be included manually in build.properties, example :icons or splash screen images.

A good example can be found here https://www.vogella.com/tutorials/EclipseProductDeployment/article.html

Hope it helps !



来源:https://stackoverflow.com/questions/60918626/why-do-all-the-images-of-the-plugin-disappear-once-the-plugin-is-exported-as-a-j

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!