eclipse - Eclipse Helios 插件开发目标平台模板 Base-RCP 损坏?

标签 eclipse eclipse-plugin target-platform

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

为此,我配置了我的目标平台,如下所示:

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

当我使用 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/

相关文章:

eclipse - 在 Flash Builder 4 中查找未使用的变量(就像 Eclipse for Java 所做的那样)

eclipse-plugin - 为什么 "Source Code Locations"页面在 eclipse 3.6 (Helios) 上丢失

java - AspectJ 可以与 Java 7 一起使用吗?

java - TomEE 中部署 org.springframework.context.ApplicationListener 异常

java - Eclipse RCP 多线程

java - eclipse 是否带有完整的内置 tomcat 服务器?

java - 从 CCombo 中删除重复的项目

eclipse - 即使 Hamcrest 是依赖项,Mockito bundle 也找不到 org.hamcrest 包

eclipse - PDE Headless 构建的目标平台不起作用

java - Eclipse自动构建Android项目很糟糕