2

我正在尝试在 Eclipse Helios 下创建一个标准的 osgi 包。

为此,我已经像这样配置了我的目标平台:

  1. 窗口 -> 首选项 -> 插件开发 -> 目标平台 -> 添加
  2. 在我选择模板和基础 RCP(仅限二进制)之后
  3. 我更改了名称并单击完成。

当我使用我的包的概述启动平台时,我在控制台中打印了这个错误:

!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,但我不明白为什么默认选择此插件。

4

1 回答 1

4

引用以下评论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插件需要在您的插件之前加载。你可以通过给它一个低于你的包的开始级别(可能设置为默认值 4)的开始级别来解决这个问题。

于 2010-08-09T10:07:50.307 回答