Eclipse RCP导出产品遇到问题

时间:2011-02-10 15:16:34

标签: eclipse-rcp

我有一个复杂的Eclipse Rich Client Platform GUI,我开发了4个Eclipse插件。我正在Eclipse 3.5.2上构建它,Build id:M20100211-1343

当我从Eclipse内部运行它作为Eclipse应用程序时,它工作得很好。

当我尝试使用产品文件的“概述”面板上的导出向导导出Eclipse产品时,出现此错误:

'Export Product' has encountered a problem.

C:\BOPEclipse3.5RabId\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86.xml:100: 
The following error occurred while executing this line:
C:\BOPEclipse3.5RabId\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86.xml:345:
C:\BOPEclipse3.5RabId\.metadata\.plugins\org.eclipse.pde.core\temp\assemblyLocation\tmp\gui\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715 not found.
The following error occurred while executing this line:
C:\BOPEclipse3.5RabId\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86.xml:345:
C:\BOPEclipse3.5RabId\.metadata\.plugins\org.eclipse.pde.core\temp\assemblyLocation\tmp\gui\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715 not found.

我查看了错误中给出的目录位置。那里有昼夜平分点发射器插件。

版本1.0.201.R35x_v20090715与错误消息中的版本匹配。

我有equinox启动器插件,以及产品文件的Dependencies列表中的win32.win32.x86平台片段。

我在选中的产品文件的“概述”面板中显示“产品包含原生启动工件”复选框。

我在GUI插件XML的Dependencies面板中的Required Plug-ins列表中有org.eclipse.equinox.launcher。

我将“javacDefaultEncoding .. = UTF-8”添加到GUI插件的build.properties文件的第一行。 (我在日本博客上发现了这个建议。)

我已多次清理插件项目。

编辑添加我今天尝试的内容:

我创建了一个新的Eclipse 3.5实例。没有帮助。

我复制了工作区并尝试使用Eclipse 3.6。相同的错误,不同的行号。

我创建了一个Hello World RCP,并尝试将其打包在Eclipse 3.5上。同样的错误。我使用了不同的工作区。同样的错误。

我创建了相同的Hello World RCP,并尝试将其打包在Eclipse 3.6上。同样的错误。

今天的编辑结束。

我搜索过eclipse.org和互联网。

我希望你们中的一个人之前遇到过这个问题,并且可以指出我的解决方案。如果我弄清楚如何解决这个问题,我会发布答案。

1 个答案:

答案 0 :(得分:1)

我想我找到了解决方案。

如果我将JRE系统库设置为Java 1.5,我可以打包Hello World RCP。当我将JRE系统库设置为Java 1.6时,我收到错误。

将我真正的RCP应用程序转换为Java 1.5需要花费几天的时间。我希望这能解决问题。

我已经向Eclipse Foundation报告了这个问题。这是错误号337,235