Eclispe Helios 插件开发目标平台模板 Base-RCP 损坏?
我正在尝试在 Eclipse Helios 下创建一个标准的 osgi 包。
为此,我配置了我的目标平台,如下所示:
- Window ->首选项->插件开发->目标平台->添加
- 在选择模板和基本 RCP(仅限二进制)后,
- 我更改了名称并单击完成。
当我使用捆绑包的概述启动平台时,我在控制台中打印了以下错误:
!SESSION 2010-07-16 15:44:37.987 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -dev file:C:/Documents and Settings/E364866/Desktop/calendar/antonio osgi tutorial/.metadata/.plugins/org.eclipse.pde.core/OSGI DynaResume/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console
!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator
!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator
!STACK 0
我已设法通过取消选择 org.eclipse.ui 插件来运行平台在平台配置窗口中,但我不明白为什么默认选择这个插件。
I'm trying to create a standard osgi bundle under Eclipse Helios.
To do so, I've configured my Target Platform like this:
- Window -> Preferences -> Plug-in Development -> Target Platform -> Add
- After I choose Template and Base RCP (Binary Only)
- I changed the name and clicked Finish.
When I launch the platform using the Overview of my bundle, I've got this error printed in the console :
!SESSION 2010-07-16 15:44:37.987 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -dev file:C:/Documents and Settings/E364866/Desktop/calendar/antonio osgi tutorial/.metadata/.plugins/org.eclipse.pde.core/OSGI DynaResume/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console
!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator
!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator
!STACK 0
I've managed to make the platform run by deselecting the org.eclipse.ui
plug-in in the platform configuration window, but I don't understand why this plug-in is selected by default.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
引用
org.eclipse.ui.internal.WorkbenchPlugin
中的注释:org.eclipse.ui
插件需要在您的插件之前加载。您可以通过给它一个小于您的捆绑包的起始级别的起始级别(可能设置为默认值 4)来解决此问题。Quoting the comments in
org.eclipse.ui.internal.WorkbenchPlugin
:org.eclipse.ui
plugin needs to load before your plug-in. You may fix this problem by giving it a start level less than your bundle's start level (which is probably set at default 4).