一旦将插件导出为jar并集成到IDE中,为什么插件的所有图像都会消失?

问题描述 投票:0回答:1

在我的eclipse插件中,同时测试插件(作为Eclipse应用程序运行)-

如下所示,“新建向导”中的所有图像均正确呈现,以黄色突出显示。

enter image description here

但是,一旦如下所示导出插件并将其作为jar放置在\ eclipse \ plugins中,所有图像都将丢失。这可能是什么原因?

enter image description here

放置广口瓶后,下面的图像没有图像-

enter image description here

MANIFEST.MF文件-

enter image description here

java eclipse eclipse-plugin swt jface
1个回答
2
投票

Eclipse默认添加已编译的Java类。其他文件必须手动包含在build.properties中,例如:icons或初始屏幕图像。

一个很好的例子可以在这里找到https://www.vogella.com/tutorials/EclipseProductDeployment/article.html

希望有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.