我创建了一个打开视图的 Eclipse 产品。当我通过 .product 文件启动它时,一切正常并且视图打开,但是当我导出它并通过新的.exe文件启动它时,我在启动时遇到此问题:
!ENTRY org.eclipse.e4.ui.workbench 2 0 2019-03-28 15:48:23.160
!MESSAGE Removing part descriptor with the 'views.myView' id and the 'test myview' description. Points to the invalid 'bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView' class.
因此,视图不会在导出的产品上打开。我没有更改任何依赖项,因此我无法弄清楚为什么会发生这种情况。
我必须从头开始创建一个新项目,然后将所有文件夹/文件复制并粘贴到其中。我仍然不确定是什么导致了这个问题。
就我而言,"build.properties"是问题所在。
source.. = src/
output.. = bin/
bin.includes = plugin.xml,
META-INF/,
.,
icons/,
...
未指定"源"路径,并且发生了删除部分描述符和某些内容的错误。