我正在尝试在 Eclipse Helios 下创建一个标准的 osgi 包。
为此,我配置了我的目标平台,如下所示:
- 窗口 -> 首选项 -> 插件开发 -> 目标平台 -> 添加
- 选择模板和基本 RCP(仅限二进制)后
- 我更改了名称并单击“完成”。
当我使用 bundle 的概述启动平台时,我在控制台中打印了此错误:
!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
插件来使平台运行,但我不明白为什么选择这个插件默认。
最佳答案
引用org.eclipse.ui.internal.WorkbenchPlugin
中的注释:
// The UI plugin needs to be initialized so that it can install the callback in PrefUtil,
// which needs to be done as early as possible, before the workbench
// accesses any API preferences.
org.eclipse.ui
插件需要在插件之前加载。您可以通过给它一个小于您的 bundle 的起始级别的起始级别(可能设置为默认值 4)来解决此问题。
关于eclipse - Eclipse Helios 插件开发目标平台模板 Base-RCP 损坏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3265559/