简体   繁体   English

Eclipse RCP导出产品遇到问题

[英]Eclipse RCP Export Product Encounters a Problem

I have a complex Eclipse Rich Client Platform GUI with 4 Eclipse plug-ins that I developed. 我有一个复杂的Eclipse Rich Client Platform GUI,其中包含我开发的4个Eclipse插件。 I'm constructing it on Eclipse 3.5.2, Build id: M20100211-1343 我正在Eclipse 3.5.2上构建它,内部版本号:M20100211-1343

It works just fine when I run it from inside of Eclipse as an Eclipse Application. 当我从Eclipse内部将它作为Eclipse应用程序运行时,它的运行正常。

When I try to export the Eclipse Product using the export wizard on the Overview panel of the product file, I get this error: 当我尝试使用产品文件的“概述”面板上的导出向导导出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.

I looked at the directory location given in the error. 我查看了错误中给出的目录位置。 The equinox launcher plug-in is there. 春分发射器插件在那里。

The version 1.0.201.R35x_v20090715 matches the version in the error message. 版本1.0.201.R35x_v20090715与错误消息中的版本匹配。

I have the equinox launcher plug-in, and the win32.win32.x86 platform fragment in the Dependencies list of the product file. 我在产品文件的“依赖关系”列表中有Equinox启动器插件和win32.win32.x86平台片段。

I have the "The product includes native launcher artifacts" check box in the Overview panel of the product file checked. 我在产品文件的“概述”面板中选中了“该产品包括本机启动器工件”复选框。

I have org.eclipse.equinox.launcher in the list of Required Plug-ins in the Dependencies panel of the GUI plug-in XML. 我在GUI插件XML的“依赖关系”面板的“必需插件”列表中有org.eclipse.equinox.launcher。

I added "javacDefaultEncoding.. = UTF-8" to the first line of the build.properties file of the GUI plug-in. 我在GUI插件的build.properties文件的第一行中添加了“ javacDefaultEncoding .. = UTF-8”。 (I found this advice on a Japanese blog.) (我在一个日本博客上发现了这个建议。)

I have cleaned the plug-in projects multiple times. 我已经多次清理了插件项目。

Edited to add what I tried today: 编辑以添加我今天尝试的内容:

I created a new Eclipse 3.5 instance. 我创建了一个新的Eclipse 3.5实例。 Didn't help. 没有帮助。

I copied the workspace and tried to use Eclipse 3.6. 我复制了工作区并尝试使用Eclipse 3.6。 Same error, different line numbers. 错误相同,行号不同。

I created a Hello World RCP and tried to package it on Eclipse 3.5. 我创建了一个Hello World RCP,并尝试将其打包在Eclipse 3.5上。 Same error. 同样的错误。 I used a different workspace. 我使用了另一个工作区。 Same error. 同样的错误。

I created the same Hello World RCP and tried to package it on Eclipse 3.6. 我创建了相同的Hello World RCP,并尝试将其打包在Eclipse 3.6上。 Same error. 同样的错误。

End of today's edits. 今天的编辑结束。

I've searched eclipse.org and the Internet. 我搜索了eclipse.org和Internet。

I'm hoping that one of you has encountered this problem before, and can point me to a solution. 我希望你们中的一个以前遇到过这个问题,并且可以为我提供解决方案。 If I ever figure out how to solve this problem, I will post the answer. 如果我知道如何解决此问题,我将发布答案。

I think I've found the solution. 我想我已经找到了解决方案。

I can package the Hello World RCP if I set the JRE System Library to Java 1.5. 如果将JRE系统库设置为Java 1.5,则可以打包Hello World RCP。 I get the error when I set the JRE System Library to Java 1.6. 将JRE系统库设置为Java 1.6时出现错误。

It's going to take a couple of days to convert my real RCP application to Java 1.5. 将我的真实RCP应用程序转换为Java 1.5需要花几天的时间。 I hope this solves the problem. 我希望这可以解决问题。

I've reported this problem to the Eclipse Foundation. 我已将此问题报告给Eclipse Foundation。 It's bug number 337,235 . 错误号337235

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM